Skip to end of metadata
Go to start of metadata

Description

Sets or returns an float that represents the font size for a character run. The font size will always be a multiple of 0.5.
C#
public double FontSize{ get; set; }
vb.net
Public Property FontSize() As Double

Remarks

MS Word equivalent: Format menu > Font... > Font tab > Size:

Examples

C#
          //--- Return FontSize
          float fontSize = oFont.FontSize;

          //--- Set FontSize to 16 points
          oFont.FontSize = 16.0;
        
vb.net
          '--- Return FontSize
          Dim fontSize As Float = oFont.FontSize

          '--- Set FontSize to 16 points
          oFont.FontSize = 16.0
        
  • No labels