Class FontDescriptor
Namespace: Aspose.Tasks.Visualization
Assembly: Aspose.Tasks.dll (25.8.0)
Represents font information.
public sealed class FontDescriptorInheritance
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
Size
Gets size of the font.
public float Size { get; }Property Value
Style
Gets style of the font.
public FontStyles Style { get; }