Aspose.Tasks for C++
Aspose::Tasks::Value Class Reference

Represents a value in a value list. More...

#include <Value.h>

Inherits System::Object.

Public Member Functions

int32_t get_Id ()
 Gets the unique identifier of a value across a project. More...
 
void set_Id (int32_t value)
 Sets the unique identifier of a value across a project. More...
 
System::Guid get_ValueGuid ()
 Gets a GUID which identifies this value among others in the entire project. More...
 
System::String get_Val ()
 Gets the actual value in internal representation. Prefer using strongly typed properties which are listed below. More...
 
void set_Val (const System::String &value)
 Sets the actual value in internal representation. Prefer using strongly typed properties which are listed below. More...
 
System::String get_StringValue ()
 Gets the actual value which is used to represent Text string. More...
 
void set_StringValue (const System::String &value)
 Sets the actual value which is used to represent Text string. More...
 
System::Decimal get_NumericValue ()
 Gets the actual value which is used to represent number or cost value. More...
 
void set_NumericValue (System::Decimal value)
 Sets the actual value which is used to represent number or cost value. More...
 
System::Nullable< Aspose::Tasks::Durationget_Duration ()
 Gets the actual value which is used to represent Duration. More...
 
void set_Duration (System::Nullable< Aspose::Tasks::Duration > value)
 Sets the actual value which is used to represent Duration. More...
 
System::DateTime get_DateTimeValue () const
 Gets the actual value if it can be represented as DateTime. Default value is DateTime::MinValue. More...
 
void set_DateTimeValue (System::DateTime value)
 Sets the actual value if it can be represented as DateTime. Default value is DateTime::MinValue. More...
 
System::String get_Description ()
 Gets the description of a value. More...
 
void set_Description (const System::String &value)
 Sets the description of a value. More...
 
System::String get_Phonetic () const
 Gets the phonetic information about custom field name. More...
 
void set_Phonetic (const System::String &value)
 Sets the phonetic information about custom field name. More...
 
 Value ()
 Initializes a new instance of the Value class. More...
 

Detailed Description

Represents a value in a value list.

Constructor & Destructor Documentation

◆ Value()

Aspose::Tasks::Value::Value ( )

Initializes a new instance of the Value class.

Member Function Documentation

◆ get_DateTimeValue()

System::DateTime Aspose::Tasks::Value::get_DateTimeValue ( ) const

Gets the actual value if it can be represented as DateTime. Default value is DateTime::MinValue.

Prefer this property over the Val, when you need to set the DateTime value.

◆ get_Description()

System::String Aspose::Tasks::Value::get_Description ( )

Gets the description of a value.

◆ get_Duration()

System::Nullable<Aspose::Tasks::Duration> Aspose::Tasks::Value::get_Duration ( )

Gets the actual value which is used to represent Duration.

Prefer this property over the Val, when you need to set the Duration value.

◆ get_Id()

int32_t Aspose::Tasks::Value::get_Id ( )

Gets the unique identifier of a value across a project.

It's important to not have same identifiers for different Value instances.

Minimal Id value is 1.

◆ get_NumericValue()

System::Decimal Aspose::Tasks::Value::get_NumericValue ( )

Gets the actual value which is used to represent number or cost value.

Prefer this property over the Val, when you need to set the Number or Cost value.

◆ get_Phonetic()

System::String Aspose::Tasks::Value::get_Phonetic ( ) const

Gets the phonetic information about custom field name.

◆ get_StringValue()

System::String Aspose::Tasks::Value::get_StringValue ( )

Gets the actual value which is used to represent Text string.

Prefer this property over the Val, when you need to set the Text value.

◆ get_Val()

System::String Aspose::Tasks::Value::get_Val ( )

Gets the actual value in internal representation. Prefer using strongly typed properties which are listed below.

If you want to set Text value prefer using strongly typed StringValue property.

If you want to set Number or Cost value prefer using strongly typed NumericValue property.

If you want to set Date/Start/Finish values, prefer using strongly typed DateTimeValue property.

If you want to set Duration value prefer using strongly typed Duration property.

If your type wasn't listed, use Val property.

◆ get_ValueGuid()

System::Guid Aspose::Tasks::Value::get_ValueGuid ( )

Gets a GUID which identifies this value among others in the entire project.

◆ set_DateTimeValue()

void Aspose::Tasks::Value::set_DateTimeValue ( System::DateTime  value)

Sets the actual value if it can be represented as DateTime. Default value is DateTime::MinValue.

Prefer this property over the Val, when you need to set the DateTime value.

◆ set_Description()

void Aspose::Tasks::Value::set_Description ( const System::String &  value)

Sets the description of a value.

◆ set_Duration()

void Aspose::Tasks::Value::set_Duration ( System::Nullable< Aspose::Tasks::Duration value)

Sets the actual value which is used to represent Duration.

Prefer this property over the Val, when you need to set the Duration value.

◆ set_Id()

void Aspose::Tasks::Value::set_Id ( int32_t  value)

Sets the unique identifier of a value across a project.

It's important to not have same identifiers for different Value instances.

Minimal Id value is 1.

◆ set_NumericValue()

void Aspose::Tasks::Value::set_NumericValue ( System::Decimal  value)

Sets the actual value which is used to represent number or cost value.

Prefer this property over the Val, when you need to set the Number or Cost value.

◆ set_Phonetic()

void Aspose::Tasks::Value::set_Phonetic ( const System::String &  value)

Sets the phonetic information about custom field name.

◆ set_StringValue()

void Aspose::Tasks::Value::set_StringValue ( const System::String &  value)

Sets the actual value which is used to represent Text string.

Prefer this property over the Val, when you need to set the Text value.

◆ set_Val()

void Aspose::Tasks::Value::set_Val ( const System::String &  value)

Sets the actual value in internal representation. Prefer using strongly typed properties which are listed below.

If you want to set Text value prefer using strongly typed StringValue property.

If you want to set Number or Cost value prefer using strongly typed NumericValue property.

If you want to set Date/Start/Finish values, prefer using strongly typed DateTimeValue property.

If you want to set Duration value prefer using strongly typed Duration property.

If your type wasn't listed, use Val property.