Class FontDescriptor

Class FontDescriptor

Namespace: Aspose.Tasks.Visualization
Assembly: Aspose.Tasks.dll (25.2.0)

Represents font information.

public sealed class FontDescriptor

Inheritance

objectFontDescriptor

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

FontDescriptor(string, float)

Initializes a new instance of the Aspose.Tasks.Visualization.FontDescriptor class with the specified font family and size.

public FontDescriptor(string fontFamily, float size)

Parameters

fontFamily string

Name of the font family.

size float

Size of the font.

FontDescriptor(string, float, FontStyles)

Initializes a new instance of the Aspose.Tasks.Visualization.FontDescriptor class with the specified font family, size and style.

public FontDescriptor(string fontFamily, float size, FontStyles style)

Parameters

fontFamily string

Name of the font family.

size float

Size of the font.

style FontStyles

Style of the font.

FontDescriptor(FontDescriptor, FontStyles)

Initializes a new instance of the Aspose.Tasks.Visualization.FontDescriptor class with the specified font and style.

public FontDescriptor(FontDescriptor font, FontStyles style)

Parameters

font FontDescriptor

Instance of Aspose.Tasks.Visualization.FontDescriptor to copy.

style FontStyles

Style of the font.

Properties

FontFamily

Gets the name of the font’s family.

public string FontFamily { get; }

Property Value

string

Size

Gets size of the font.

public float Size { get; }

Property Value

float

Style

Gets style of the font.

public FontStyles Style { get; }

Property Value

FontStyles