Aspose.Tasks for C++
Aspose::Tasks::Visualization::TextStyle Class Reference

Change the visual style of the text for an item in the project view. More...

#include <TextStyle.h>

Inherits System::Object.

Inherited by Aspose::Tasks::Visualization::TableTextStyle.

Public Member Functions

System::SharedPtr< FontDescriptorget_Font () const
 Gets font of the text style. More...
 
void set_Font (const System::SharedPtr< FontDescriptor > &value)
 Sets font of the text style. More...
 
System::Drawing::Color get_Color () const
 Gets color of the text. More...
 
void set_Color (System::Drawing::Color value)
 Sets color of the text. More...
 
virtual TextItemType get_ItemType ()
 Gets TextItemType of the text style. More...
 
virtual void set_ItemType (TextItemType value)
 Sets TextItemType of the text style. More...
 
Aspose::Tasks::BackgroundPattern get_BackgroundPattern () const
 Gets background pattern of the text style. BackgroundPattern. More...
 
void set_BackgroundPattern (Aspose::Tasks::BackgroundPattern value)
 Sets background pattern of the text style. BackgroundPattern. More...
 
System::Drawing::Color get_BackgroundColor () const
 Gets background color of the text style. Color. More...
 
void set_BackgroundColor (System::Drawing::Color value)
 Sets background color of the text style. Color. More...
 
 TextStyle ()
 Initializes a new instance of the TextStyle class with default settings. More...
 
 TextStyle (float fontSize, FontStyles fontStyle)
 Initializes a new instance of the TextStyle class with the default font and specified font size and style. More...
 
 TextStyle (FontStyles fontStyle)
 Initializes a new instance of the TextStyle class with the default font and specified font style. More...
 
 TextStyle (const System::SharedPtr< FontDescriptor > &font)
 Initializes a new instance of the TextStyle class with the specified font settings. More...
 

Detailed Description

Change the visual style of the text for an item in the project view.

Constructor & Destructor Documentation

◆ TextStyle() [1/4]

Aspose::Tasks::Visualization::TextStyle::TextStyle ( )

Initializes a new instance of the TextStyle class with default settings.

◆ TextStyle() [2/4]

Aspose::Tasks::Visualization::TextStyle::TextStyle ( float  fontSize,
FontStyles  fontStyle 
)

Initializes a new instance of the TextStyle class with the default font and specified font size and style.

Parameters
fontSizeSize of font of TextStyle.
fontStyleStyle of font of TextStyle.

◆ TextStyle() [3/4]

Aspose::Tasks::Visualization::TextStyle::TextStyle ( FontStyles  fontStyle)

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

Parameters
fontStyleStyle of font to apply to default font.

◆ TextStyle() [4/4]

Aspose::Tasks::Visualization::TextStyle::TextStyle ( const System::SharedPtr< FontDescriptor > &  font)

Initializes a new instance of the TextStyle class with the specified font settings.

Parameters
fontFont of the TextStyle.

Member Function Documentation

◆ get_BackgroundColor()

System::Drawing::Color Aspose::Tasks::Visualization::TextStyle::get_BackgroundColor ( ) const

Gets background color of the text style. Color.

◆ get_BackgroundPattern()

Aspose::Tasks::BackgroundPattern Aspose::Tasks::Visualization::TextStyle::get_BackgroundPattern ( ) const

Gets background pattern of the text style. BackgroundPattern.

◆ get_Color()

System::Drawing::Color Aspose::Tasks::Visualization::TextStyle::get_Color ( ) const

Gets color of the text.

◆ get_Font()

System::SharedPtr<FontDescriptor> Aspose::Tasks::Visualization::TextStyle::get_Font ( ) const

Gets font of the text style.

◆ get_ItemType()

virtual TextItemType Aspose::Tasks::Visualization::TextStyle::get_ItemType ( )
virtual

Gets TextItemType of the text style.

Reimplemented in Aspose::Tasks::Visualization::TableTextStyle.

◆ set_BackgroundColor()

void Aspose::Tasks::Visualization::TextStyle::set_BackgroundColor ( System::Drawing::Color  value)

Sets background color of the text style. Color.

◆ set_BackgroundPattern()

void Aspose::Tasks::Visualization::TextStyle::set_BackgroundPattern ( Aspose::Tasks::BackgroundPattern  value)

Sets background pattern of the text style. BackgroundPattern.

◆ set_Color()

void Aspose::Tasks::Visualization::TextStyle::set_Color ( System::Drawing::Color  value)

Sets color of the text.

◆ set_Font()

void Aspose::Tasks::Visualization::TextStyle::set_Font ( const System::SharedPtr< FontDescriptor > &  value)

Sets font of the text style.

◆ set_ItemType()

virtual void Aspose::Tasks::Visualization::TextStyle::set_ItemType ( TextItemType  value)
virtual

Sets TextItemType of the text style.