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

Project's view class used in ResourceUsage view and ResourceSheet view. More...

#include <ResourceViewColumn.h>

Inherits Aspose::Tasks::Visualization::ViewColumn.

Public Member Functions

Aspose::Tasks::Field get_Field () override
 Column field. Field. More...
 
void set_Field (Aspose::Tasks::Field value) override
 Column field. Field. More...
 
 ResourceViewColumn (const System::String &name, int32_t width, ResourceToColumnTextConverter converter, Aspose::Tasks::Field field)
 Initializes a new instance of the ResourceViewColumn class. More...
 
 ResourceViewColumn (const System::String &name, int32_t width, ResourceToColumnTextConverter converter)
 Initializes a new instance of the ResourceViewColumn class. More...
 
 ResourceViewColumn (int32_t width, Aspose::Tasks::Field field)
 Initializes a new instance of the ResourceViewColumn class. More...
 
System::String GetColumnText (const System::SharedPtr< Resource > &resource)
 Converts current resource to the column text. More...
 
- Public Member Functions inherited from Aspose::Tasks::Visualization::ViewColumn
System::String get_Name () const
 Gets the column name. More...
 
HorizontalStringAlignment get_StringAlignment () const
 Gets alignment of the text (can be one of the values of the HorizontalStringAlignment enumeration). More...
 
void set_StringAlignment (HorizontalStringAlignment value)
 Sets alignment of the text (can be one of the values of the HorizontalStringAlignment enumeration). More...
 
int32_t get_Width () const
 Gets the column width. More...
 
const System::SharedPtr< ITextStyleModificationCallback > & get_TextStyleModificationCallback () const
 Gets the callback which can be used to customize the appearance of the column's cells. More...
 
void set_TextStyleModificationCallback (const System::SharedPtr< ITextStyleModificationCallback > &value)
 Sets the callback which can be used to customize the appearance of the column's cells. More...
 

Detailed Description

Project's view class used in ResourceUsage view and ResourceSheet view.

Constructor & Destructor Documentation

◆ ResourceViewColumn() [1/3]

Aspose::Tasks::Visualization::ResourceViewColumn::ResourceViewColumn ( const System::String &  name,
int32_t  width,
ResourceToColumnTextConverter  converter,
Aspose::Tasks::Field  field 
)

Initializes a new instance of the ResourceViewColumn class.

Parameters
nameColumn's name.
widthColumn's width in pixels.
converterResource data to column text converter.
fieldColumn field.

◆ ResourceViewColumn() [2/3]

Aspose::Tasks::Visualization::ResourceViewColumn::ResourceViewColumn ( const System::String &  name,
int32_t  width,
ResourceToColumnTextConverter  converter 
)

Initializes a new instance of the ResourceViewColumn class.

Parameters
nameColumn's name.
widthColumn's width in pixels.
converterResource data to column text converter.

◆ ResourceViewColumn() [3/3]

Aspose::Tasks::Visualization::ResourceViewColumn::ResourceViewColumn ( int32_t  width,
Aspose::Tasks::Field  field 
)

Initializes a new instance of the ResourceViewColumn class.

Parameters
widthColumn width in pixels.
fieldColumn field.

Member Function Documentation

◆ get_Field()

Aspose::Tasks::Field Aspose::Tasks::Visualization::ResourceViewColumn::get_Field ( )
overridevirtual

Column field. Field.

Implements Aspose::Tasks::Visualization::ViewColumn.

◆ GetColumnText()

System::String Aspose::Tasks::Visualization::ResourceViewColumn::GetColumnText ( const System::SharedPtr< Resource > &  resource)

Converts current resource to the column text.

Parameters
resourceCurrent resource.
Returns
The column text.

◆ set_Field()

void Aspose::Tasks::Visualization::ResourceViewColumn::set_Field ( Aspose::Tasks::Field  value)
overridevirtual

Column field. Field.

Implements Aspose::Tasks::Visualization::ViewColumn.