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

Represents a text style in a view table. More...

#include <TableTextStyle.h>

Inherits Aspose::Tasks::Visualization::TextStyle.

Public Member Functions

int32_t get_RowUid () const
 Gets a row unique id. More...
 
Aspose::Tasks::Field get_Field () const
 Gets a field the style is to be applied to. Field. More...
 
void set_Field (Aspose::Tasks::Field value)
 Sets a field the style is to be applied to. Field. More...
 
TextItemType get_ItemType () override
 Returns a value of the Aspose::Tasks::Visualization::TextItemType enum. More...
 
 TableTextStyle (int32_t rowUid)
 Initializes a new instance of the TableTextStyle class. More...
 
 TableTextStyle (int32_t rowUid, const System::SharedPtr< FontDescriptor > &font)
 Initializes a new instance of the TableTextStyle class with the specified font. More...
 
 TableTextStyle (int32_t rowUid, float fontSize, FontStyles fontStyle)
 Initializes a new instance of the TableTextStyle class with the specified font size and font style. More...
 
 TableTextStyle (int32_t rowUid, FontStyles fontStyle)
 Initializes a new instance of the TableTextStyle class with the default font settings and the specified font style. More...
 
- Public Member Functions inherited from Aspose::Tasks::Visualization::TextStyle
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 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

Represents a text style in a view table.

Constructor & Destructor Documentation

◆ TableTextStyle() [1/4]

Aspose::Tasks::Visualization::TableTextStyle::TableTextStyle ( int32_t  rowUid)

Initializes a new instance of the TableTextStyle class.

Parameters
rowUidA specified row unique id.

◆ TableTextStyle() [2/4]

Aspose::Tasks::Visualization::TableTextStyle::TableTextStyle ( int32_t  rowUid,
const System::SharedPtr< FontDescriptor > &  font 
)

Initializes a new instance of the TableTextStyle class with the specified font.

Parameters
rowUidA specified row unique id.
fontA font on which a text style is based on.

◆ TableTextStyle() [3/4]

Aspose::Tasks::Visualization::TableTextStyle::TableTextStyle ( int32_t  rowUid,
float  fontSize,
FontStyles  fontStyle 
)

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

Parameters
rowUidA specified row unique id.
fontSizeSize of a font on which a text style is based on.

///

Parameters
fontStyleStyle of a font on which a text style is based on.

◆ TableTextStyle() [4/4]

Aspose::Tasks::Visualization::TableTextStyle::TableTextStyle ( int32_t  rowUid,
FontStyles  fontStyle 
)

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

Parameters
rowUidA specified row unique id.

///

Parameters
fontStyleStyle of a font on which a text style is based on.

Member Function Documentation

◆ get_Field()

Aspose::Tasks::Field Aspose::Tasks::Visualization::TableTextStyle::get_Field ( ) const

Gets a field the style is to be applied to. Field.

◆ get_ItemType()

TextItemType Aspose::Tasks::Visualization::TableTextStyle::get_ItemType ( )
overridevirtual

Returns a value of the Aspose::Tasks::Visualization::TextItemType enum.

Gets TextItemType of the text style.

Reimplemented from Aspose::Tasks::Visualization::TextStyle.

◆ get_RowUid()

int32_t Aspose::Tasks::Visualization::TableTextStyle::get_RowUid ( ) const

Gets a row unique id.

Return -1 if the style is to be applied to all rows of a view.

◆ set_Field()

void Aspose::Tasks::Visualization::TableTextStyle::set_Field ( Aspose::Tasks::Field  value)

Sets a field the style is to be applied to. Field.