Set Text, font weight and font size for Label : Label Style « Components « Flex






Set Text, font weight and font size for Label

Set Text, font weight and font size for Label
     


<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->


<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:layout>
        <s:VerticalLayout />
    </s:layout>
    <s:Panel title="My Application">
        <s:Label text="Hello World" fontWeight="bold" fontSize="24" />
    </s:Panel>
</s:Application>

   
    
    
    
    
  








Related examples in the same category

1.Apply style to LabelApply style to Label
2.Enable data labels on the columns by setting the value of the labelPosition style property to insideEnable data labels on the columns by setting the value of the labelPosition style property to inside
3.Label style
4.Set style name for LabelSet style name for Label
5.Set font weight and size for LabelSet font weight and size for Label
6.The following example embeds a font and rotates the data labels 45 degrees:The following example embeds a font and rotates the data labels 45 degrees:
7.Overwrite Label font size with attribute
8.Name appears in the DataTip in italic font before the label dataName appears in the DataTip in italic font before the label data