Skip to main content
All docs
V24.1

DXFontAdditionalProperty Class

Contains additional font properties.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

[TypeConverter(typeof(DXFontAdditionalPropertyTypeConverter))]
public class DXFontAdditionalProperty

Remarks

Use the DXFontAdditionalProperty class instance to specify settings that are missing from the DXFont instance. You can pass the array of DXFontAdditionalProperty objects as a parameter to the DXFont.DXFont(String, Single, DXFontStyle, DXGraphicsUnit, DXFontAdditionalProperty[]) constructor.

Use the DXFont.AdditionalProperties property to obtain additional font properties. Please note that this property is not browsable because it only serves for backward compatibility.

The code sample below shows how to specify the GdiCharSet property to a created font:

using DevExpress.Drawing;

DXFontAdditionalProperty charSet = new DXFontAdditionalProperty("GdiCharSet", (byte)123);
DXFont labelFont = new DXFont("Arial", 26, DXFontStyle.Regular, 
    DXGraphicsUnit.Pixel, new DXFontAdditionalProperty[] { charSet });

Inheritance

Object
DXFontAdditionalProperty
See Also