Class ExtendedAttribute

Class ExtendedAttribute

名称: Aspose.Tasks 集合: Aspose.Tasks.dll (25.4.0)

代表延长属性。

[ClassInterface(ClassInterfaceType.AutoDual)]
public class ExtendedAttribute

Inheritance

object ExtendedAttribute

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

目前支持所有类型的扩展属性从 MSP Xml 2003/2007 和 mpp 2003 阅读。对于 MSP mpp 2007 的所有扩展属性阅读支持,除了长度和旗帜。

Properties

AttributeDefinition

得到了属性定义。

public ExtendedAttributeDefinition AttributeDefinition { get; }

财产价值

ExtendedAttributeDefinition

DateValue

获取或设置具有日期类型的属性值(日期、开始、结束)。

public DateTime DateValue { get; set; }

财产价值

DateTime

Exceptions

InvalidOperationException

如果 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性没有启动或当前属性不是日期属性。

DurationValue

获取或设置值与“持续”类型的属性。

public Duration DurationValue { get; set; }

财产价值

Duration

Exceptions

InvalidOperationException

如果 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性不是初创或定制的 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性不是 Aspose.Tasks.Duration 例子。

FieldId

得到一个字段的ID。

public string FieldId { get; }

财产价值

string

FlagValue

收到或设置一个值,表明是否为具有“旗”类型的属性设置了旗帜。

public bool FlagValue { get; set; }

财产价值

bool

Exceptions

InvalidOperationException

如果 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性未启动或当前属性未成为旗帜属性。

IsErrorValue

确定延伸属性的值计算是否导致错误。

public bool IsErrorValue { get; }

财产价值

bool

NumericValue

收到或设置一个值的属性与数字类型(成本,数字)。

public decimal NumericValue { get; set; }

财产价值

decimal

Exceptions

InvalidOperationException

如果 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性不是初创或定制的 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性不是“成本”或“号码”。

TextValue

收到或设置具有“文本”类型的属性值。

public string TextValue { get; set; }

财产价值

string

Exceptions

InvalidOperationException

如果 Aspose.Tasks.ExtendedAttribute.AttributeDefinition 属性未启动或当前属性不构成文本属性。

ValueGuid

得到一个寻找价值的指南。

public string ValueGuid { get; }

财产价值

string

Remarks

它不应该直接设置,而使用 ExtendedAttributeDefinition.CreateExtendedAttribute(Value lookupValue)以创建具有搜索值的扩展属性。

ValueReadOnly

收到一个值,表明是否该 Aspose.Tasks.ExtendedAttribute 例的值仅读取。返回真实,如果在 Aspose.Tasks.ExtendedAttributeDefinition 为此对象中定义了公式或滚动。

public bool ValueReadOnly { get; }

财产价值

bool

Methods

ToString()

返回一个扩展属性的短线代表性。

public override string ToString()

Returns

string

序列代表延伸属性。

 中文