FontSize units : Font « Windows Presentation Foundation « VB.Net






FontSize units

FontSize units
      

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">

    <StackPanel>
      <TextBlock Text="10 pixels"    FontSize="10" />
      <TextBlock Text="10 points"    FontSize="10pt" />
      <TextBlock Text="1 centimetre" FontSize="1cm" />
      <TextBlock Text="0.2 inches"   FontSize="0.2in" />
    </StackPanel>


</Window>

   
    
    
    
    
    
  








Related examples in the same category

1.Change a Control's Font Weight on Mouse OverChange a Control's Font Weight on Mouse Over
2.Display Simple Text with TextBlock and set font, alignmentDisplay Simple Text with TextBlock and set font, alignment
3.Section Font StyleSection Font Style
4.Adding TextBlock to StackPanel with different font sizeAdding TextBlock to StackPanel with different font size
5.Using text format property aliases
6.Programmatically change the FontFamily property of a TextBlock element.Programmatically change the FontFamily property of a TextBlock element.
7.Font Properties SampleFont Properties Sample