The Font type exposes the following members.

Constructors

  NameDescription
Public methodFont()()()()
Constructs a Font.
Public methodFont(Int32)
Constructs a Font.
Public methodFont(BaseFont)
Constructs a Font.
Public methodFont(Font)
Public methodFont(Int32, Single)
Constructs a Font.
Public methodFont(BaseFont, Single)
Constructs a Font.
Public methodFont(Int32, Single, Int32)
Constructs a Font.
Public methodFont(BaseFont, Single, Int32)
Constructs a Font.
Public methodFont(Int32, Single, Int32, Color)
Constructs a Font.
Public methodFont(BaseFont, Single, Int32, Color)
Constructs a Font.

Methods

  NameDescription
Public methodCompareTo
Compares this Font with another
Public methodDifference
Replaces the attributes that are equal to null with the attributes of a given font.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCalculatedBaseFont
Public methodGetCalculatedLeading
Public methodStatic memberGetFamilyIndex
Translates a string-value of a certain family into the index that is used for this family in this class.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic memberGetStyleValue
Translates a string-value of a certain style into the index value is used for this style in this class.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsBold
checks if this font is Bold.
Public methodIsItalic
checks if this font is Bold.
Public methodIsStandardFont
Checks if the properties of this font are undefined or null.

If so, the standard should be used.

Public methodIsStrikethru
checks if the style of this font is STRIKETHRU.
Public methodIsUnderlined
checks if this font is underlined.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetColor
Sets the color.
Public methodSetFamily
Sets the family using a String ("Courier", "Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").
Public methodSetStyle(Int32)
Public methodSetStyle(String)
Sets the style using a String containing one of more of the following values: normal, bold, italic, underline, strike.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberBOLD
this is a possible style.
Public fieldStatic memberBOLDITALIC
this is a possible style.
Public fieldStatic memberCOURIER
a possible value of a font family.
Public fieldStatic memberDEFAULTSIZE
the value of the default size.
Public fieldStatic memberHELVETICA
a possible value of a font family.
Public fieldStatic memberITALIC
this is a possible style.
Public fieldStatic memberNORMAL
this is a possible style.
Public fieldStatic memberSTRIKETHRU
this is a possible style.
Public fieldStatic memberSYMBOL
a possible value of a font family.
Public fieldStatic memberTIMES_ROMAN
a possible value of a font family.
Public fieldStatic memberUNDEFINED
the value of an undefined attribute.
Public fieldStatic memberUNDERLINE
this is a possible style.
Public fieldStatic memberZAPFDINGBATS
a possible value of a font family.

Properties

  NameDescription
Public propertyBaseFont
Gets the BaseFont inside this object.
Public propertyCalculatedSize
Public propertyCalculatedStyle
Public propertyColor
Get/set the color of this font.
Public propertyFamily
Gets the family of this font.
Public propertyFamilyname
Gets the familyname as a string.
Public propertySize
Get/set the size of this font.
Public propertyStyle
Gets the style of this font.

See Also