Skip to main content
All docs
V24.2

DXFont Members

Contains the text format settings such as font size and style.

Constructors

Name Description
DXFont(DXFont, DXFontStyle) Initializes a new instance of the DXFont class with specified settings.
DXFont(String, Single, DXFontStyle, DXGraphicsUnit, DXFontAdditionalProperty[]) Initializes a new instance of the DXFont class with specified settings.
DXFont(String, Single, DXFontStyle, DXGraphicsUnit) Initializes a new instance of the DXFont class with specified settings.
DXFont(String, Single, DXFontStyle) Initializes a new instance of the DXFont class with specified settings.
DXFont(String, Single) Initializes a new instance of the DXFont class with specified settings.

Properties

Name Description
Bold Gets a value that indicates whether the font is bold.
Height Obtains the font height.
Italic Gets a value that indicates whether the italic style is applied to the font.
Name Gets the font name.
Size Gets the size of the font in units defined by the DXFont.Unit property.
SizeInPoints Gets the size of the font in points.
Strikeout Gets a value that indicates whether the font has a horizontal line through it.
Style Returns style information applied to the font.
Underline Gets a value that indicates whether the font is underlined.
Unit Obtains the font measurement unit.

Methods

Name Description
Clone() Creates a copy of the DXFont instance.
Equals(DXFont) Determines whether the specified DXFont object is equal to the current DXFont instance.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current DXFont instance.
GetHashCode() Gets the hash code for DXFont.
GetHeight(DXGraphicsUnit) Gets the font’s line spacing in the specified graphics units.
GetHeight(Single) Gets the font’s line spacing in pixels when drawn on a device with the specified DPI.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that specifies `DXFont’.
See Also