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 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

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

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

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.
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.
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

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

Gets background color of the text style. Color.

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

Gets background pattern of the text style. BackgroundPattern.

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

Gets color of the text.

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

Gets font of the text style.

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

Gets TextItemType of the text style.

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

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

Sets background color of the text style. Color.

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

Sets background pattern of the text style. BackgroundPattern.

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

Sets color of the text.

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

Sets font of the text style.

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

Sets TextItemType of the text style.