Class Value
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a value in a value list.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class Value
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Value()
Initializes a new instance of the Aspose.Tasks.Value class.
public Value()
Properties
DateTimeValue
Gets or sets the actual value if it can be represented as DateTime. Default value is System.DateTime.MinValue.
public DateTime DateTimeValue { get; set; }
Property Value
Remarks
Prefer this property over the Aspose.Tasks.Value.Val, when you need to set the DateTime value.
Description
Gets or sets the description of a value.
public string Description { get; set; }
Property Value
Duration
Gets or sets the actual value which is used to represent Duration.
public Duration? Duration { get; set; }
Property Value
Remarks
Prefer this property over the Aspose.Tasks.Value.Val, when you need to set the Duration value.
Id
Gets or sets the unique identifier of a value across a project.
It's important to not have same identifiers for different Aspose.Tasks.Value instances.
Minimal Aspose.Tasks.Value.Id value is 1
.
public int Id { get; set; }
Property Value
NumericValue
Gets or sets the actual value which is used to represent number or cost value.
public decimal NumericValue { get; set; }
Property Value
Remarks
Prefer this property over the Aspose.Tasks.Value.Val, when you need to set the Number or Cost value.
Phonetic
Gets or sets the phonetic information about custom field name.
public string Phonetic { get; set; }
Property Value
StringValue
Gets or sets the actual value which is used to represent Text string.
public string StringValue { get; set; }
Property Value
Remarks
Prefer this property over the Aspose.Tasks.Value.Val, when you need to set the Text value.
Val
Gets or sets the actual value in internal representation. Prefer using strongly typed properties which are listed below.
public string Val { get; set; }
Property Value
Remarks
If you want to set Text value prefer using strongly typed Aspose.Tasks.Value.StringValue property.
If you want to set Number or Cost value prefer using strongly typed Aspose.Tasks.Value.NumericValue property.
If you want to set Date/Start/Finish values, prefer using strongly typed Aspose.Tasks.Value.DateTimeValue property.
If you want to set Duration value prefer using strongly typed Aspose.Tasks.Value.Duration property.
If your type wasn't listed, use Aspose.Tasks.Value.Val property.
ValueGuid
Gets a GUID which identifies this value among others in the entire project.
public Guid ValueGuid { get; }