Aspose.Tasks for C++
Aspose::Tasks::Visualization::FontDescriptor Class Referencefinal

Represents font information. More...

#include <FontDescriptor.h>

Inherits System::Object.

Public Member Functions

System::String get_FontFamily () const
 Gets the name of the font's family. More...
 
float get_Size () const
 Gets size of the font. More...
 
FontStyles get_Style () const
 Gets style of the font. More...
 
 FontDescriptor (const System::String &fontFamily, float size)
 Initializes a new instance of the FontDescriptor class with the specified font family and size. More...
 
 FontDescriptor (const System::String &fontFamily, float size, FontStyles style)
 Initializes a new instance of the FontDescriptor class with the specified font family, size and style. More...
 
 FontDescriptor (const System::SharedPtr< FontDescriptor > &font, FontStyles style)
 Initializes a new instance of the FontDescriptor class with the specified font and style. More...
 

Detailed Description

Represents font information.

Constructor & Destructor Documentation

◆ FontDescriptor() [1/3]

Aspose::Tasks::Visualization::FontDescriptor::FontDescriptor ( const System::String &  fontFamily,
float  size 
)

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

Parameters
fontFamilyName of the font family.
sizeSize of the font.

◆ FontDescriptor() [2/3]

Aspose::Tasks::Visualization::FontDescriptor::FontDescriptor ( const System::String &  fontFamily,
float  size,
FontStyles  style 
)

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

Parameters
fontFamilyName of the font family.
sizeSize of the font.
styleStyle of the font.

◆ FontDescriptor() [3/3]

Aspose::Tasks::Visualization::FontDescriptor::FontDescriptor ( const System::SharedPtr< FontDescriptor > &  font,
FontStyles  style 
)

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

Parameters
fontInstance of FontDescriptor to copy.
styleStyle of the font.

Member Function Documentation

◆ get_FontFamily()

System::String Aspose::Tasks::Visualization::FontDescriptor::get_FontFamily ( ) const

Gets the name of the font's family.

◆ get_Size()

float Aspose::Tasks::Visualization::FontDescriptor::get_Size ( ) const

Gets size of the font.

◆ get_Style()

FontStyles Aspose::Tasks::Visualization::FontDescriptor::get_Style ( ) const

Gets style of the font.