Back to Devexpress

DXFontAdditionalProperty Class

corelibraries-devexpress-dot-drawing-884ce04e.md

latest2.2 KB
Original Source

DXFontAdditionalProperty Class

Contains additional font properties.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public class DXFontAdditionalProperty
vb
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:

csharp
using DevExpress.Drawing;

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

Private charSet As New DXFontAdditionalProperty("GdiCharSet", CByte(123))
Private labelFont As New DXFont("Arial", 26, DXFontStyle.Regular, 
    DXGraphicsUnit.Pixel, New DXFontAdditionalProperty() { charSet })

Inheritance

Object DXFontAdditionalProperty

See Also

DXFontAdditionalProperty Members

DevExpress.Drawing Namespace