Name

FontUnit

Synopsis

This class represents the size of a font and is used by the FontInfo.Size property. The size of the font can be specified in two ways. You can use the Type property, which uses one of the HTML 4.0 standard font size specifications (which are duplicated as shared read-only fields in this class) or the Unit property, which uses a Unit structure that can specify an exact point size.

Public Structure FontUnit
                  ' Public Constructors
   Public Sub New(ByVal type As FontSize) 
   Public Sub New(ByVal value As Integer) 
   Public Sub New(ByVal value As String) 
   Public Sub New(ByVal value As String, 
        ByVal culture As System.Globalization.CultureInfo) 
   Public Sub New(ByVal value As Unit) 
' Public Shared Fields
   public Shared ReadOnly Empty As FontUnit  
   public Shared ReadOnly Large As FontUnit                      // =Large
   public Shared ReadOnly Larger As FontUnit                     // =Larger
   public Shared ReadOnly Medium As FontUnit                     // =Medium
   public Shared ReadOnly Small As FontUnit                      // =Small
   public Shared ReadOnly Smaller As FontUnit                    // =Smaller
   public Shared ReadOnly XLarge As FontUnit                     // =X-Large
   public Shared ReadOnly XSmall As FontUnit                     // =X-Small
   public Shared ReadOnly XXLarge As FontUnit                    // =XX-Large
   public Shared ReadOnly XXSmall As FontUnit                    // =XX-Small
                  ' Public Instance Properties
   Public ReadOnly Property IsEmpty As Boolean  
   Public ReadOnly Property Type As FontSize  
   Public ReadOnly Property Unit As Unit  
' Public Shared Methods
   Public Shared Function Parse( ByVal s As String) As FontUnit Public Shared Function  ...

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.