Class ExtendedAttributeDefinition

Class ExtendedAttributeDefinition

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

プロジェクトに関連する拡張属性の定義を表します。

[ClassInterface(ClassInterfaceType.AutoDual)]
public class ExtendedAttributeDefinition

Inheritance

object ExtendedAttributeDefinition

相続人

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

Properties

Alias

受信またはカスタムフィールドのアライアスを設定します。

public string Alias { get; set; }

不動産価値

string

AppendNewValues

プロジェクトに追加された新しい値がリストに自動的に追加されるかどうかを示す値を取得または設定します。

public bool AppendNewValues { get; set; }

不動産価値

bool

Remarks

現在、MSP 2003/2007 XmlおよびMSP 2003 mppのフォーマットでサポートされています。

AutoRollDown

任務に自動回転が有効であるかどうかを示す値を取得または設定します。

public bool AutoRollDown { get; set; }

不動産価値

bool

CalculationType

特定属性の値を計算するタイプを取得または設定します。

public CalculationType CalculationType { get; set; }

不動産価値

CalculationType

CfType

特定のフィールドのタイプを取得します。

public CustomFieldType CfType { get; }

不動産価値

CustomFieldType

Default

リストにデフォルト値を入力または設定します。

public string Default { get; set; }

不動産価値

string

Remarks

現在、MSP 2003/2007 XmlおよびMSP 2003 mppのフォーマットでサポートされています。

DefaultGuid

入力またはデフォルト検索テーブルの入力ガイドを設定します。

public string DefaultGuid { get; set; }

不動産価値

string

ElementType

拡張属性の取得または設定が関連する課題、資源、あるいは任務がある。

public ElementType ElementType { get; set; }

不動産価値

ElementType

FieldId

ゲットまたはセットは、カスタマイズされたフィールドのプロジェクトIDと一致します。Aspose.Tasks.ExtendedAttributeTask クラスからコンスタントを表示して Aspose.Tasks.ExtendedAttributeDefinition.FieldId 属性を指定します。

public string FieldId { get; set; }

不動産価値

string

Examples

customFieldDefinition.FieldId = Aspose.Tasks.ExtendedAttributeTask.Number10.ToString("D");

Remarks

Aspose.Tasks.ExtendedAttributeDefinition.FieldIdの特性を設定する最適な方法は、AttributeDefinitionを作成することです。Aspose.Tasks.ExtendedAttributeDefinition.CreateTaskDefinition(Aspose.Tasks.ExtendedAttributeTask、System.String)またはAspose.Tasks.ExtendedAttributeDefinition.CreateLookupTaskDefinition(Aspose.Tasks.CustomFieldType、Aspose.Tasks.ExtendedAttributeTask、System.String)などの専用工場方法を使用します。

FieldName

カスタムフィールドの名前を付けます。

public string FieldName { get; }

不動産価値

string

Remarks

直接設定する必要はなく、拡張AttributeDefinition を作成する代わりに、Create*Definition() と呼ばれる強く印刷された静的工場方法を使用します。

Formula

Microsoft Project がカスタマイズされたタスクフィールドを人口化するために使用する公式を取得または設定します。

public string Formula { get; set; }

不動産価値

string

GraphicalIndicator

拡張属性に関連するグラフィック指標情報を取得または設定します。MPP形式に適用されます。

public GraphicalIndicatorsInfo GraphicalIndicator { get; set; }

不動産価値

GraphicalIndicatorsInfo

Guid

特定のフィールドのガイドを取得または設定します。

public string Guid { get; set; }

不動産価値

string

Remarks

現在、Xml形式のみでサポートされています。

LookupUid

特定のフィールドと関連付けられた検索テーブルのガイドを取得します。

public string LookupUid { get; }

不動産価値

string

Remarks

検索アップでカスタマイズされたフィールドを作成するには、Aspose.Tasks.ExtendedAttributeDefinition.CreateLookupTaskDefinition(Aspose.Tasks.CustomFieldType、Aspose.Tasks.ExtendedAttributeTask、System.String)またはAspose.Tasks.ExtendedAttributeDefinition.CreateLookupResourceDefinition(Aspose.Tasks.CustomFieldType、Aspose.Tasks.ExtendedAttributeResource、System.String)を使用します。

MaxMultiValues

選択リストに設定できる値の最大数を取得または設定します。

public int MaxMultiValues { get; set; }

不動産価値

int

Remarks

現在、Xml形式のみでサポートされています。

ParentProject

Aspose.Tasks.ExtendedAttributeDefinition のマザープロジェクトを取得します。

public Project ParentProject { get; }

不動産価値

Project

PhoneticsAlias

個別フィールドのアライアスの音声発音を取得または設定します。

public string PhoneticsAlias { get; set; }

不動産価値

string

Remarks

現在、Xml形式のみでサポートされています。

RestrictValues

カスタマイズされたフィールド値が Aspose.Tasks.ExtendedAttributeDefinition.ValueList の値に制限されているかどうかを示す値を取得または設定します。

public bool RestrictValues { get; set; }

不動産価値

bool

RollupType

ルールアップが計算される方法を取得または設定します。

public RollupType RollupType { get; set; }

不動産価値

RollupType

Remarks

書き込みは現在、Xml形式のみでサポートされています。

SecondaryGuid

拡張属性の次元ガイドを取得または設定します。

public string SecondaryGuid { get; set; }

不動産価値

string

Remarks

これはMSプロジェクト2010の所有物の新規です。

SecondaryPid

個別フィールドの二次PIDを取得または設定します。

public string SecondaryPid { get; set; }

不動産価値

string

SummaryRowsCalculationType

概要行のためのカスタマイズ属性の値の計算の種類を取得または設定します。

public SummaryRowsCalculationType SummaryRowsCalculationType { get; set; }

不動産価値

SummaryRowsCalculationType

UserDef

指定されたフィールドがユーザーによって定義されているかどうかを示す値を取得または設定します。

public bool UserDef { get; set; }

不動産価値

bool

Remarks

現在、Xml形式のみでサポートされています。

ValueList

リスト<Value> ValueList を取得します。

public List<value> ValueList { get; }

不動産価値

List < Value >

Remarks

拡張属性の値がスケジュール内の要素の属性として指定される場合、これらは、値によって指定されるか、またはこのリストに含まれる値への参照によって指定されることができる。アプリケーションは、ここに記載されている注文によってリストの注文を承認することができます。現在、MSP 2003/2007 XmlおよびMSP 2003 mppのフォーマットでサポートされています。このリストを直接変更しないでください. ExtendedAttributeDefinition.AddLookupValue/RemoveLookupValue 方法を使用します。

ValuelistSortOrder

値列が分類される方法を取得または設定します 値は: 0=下落、1=上昇です。

public int ValuelistSortOrder { get; set; }

不動産価値

int

Remarks

現在、MSP 2003/2007 XmlおよびMSP 2003 mppのフォーマットでサポートされています。

Methods

AddLookupValue(Value)

内部検索リストに値を追加します. これは Aspose.Tasks.ExtendedAttributeDefinition.ValueList の操作の最適な方法です。

public void AddLookupValue(Value value)

Parameters

value Value

見通しに追加する価値

Examples

このコードを使用して新しい値を追加して検索リストに追加します:taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });

Remarks

この方法は Aspose.Tasks.ExtendedAttributeDefinition 例のみで動作します。Aspose.Tasks.ExtendedAttributeDefinition.CalculationType は Aspose.Tasks.CalculationType.Lookup と同等です。

CreateExtendedAttribute()

このオブジェクトのフィールドID値に等しいフィールドIDを使用して新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute()

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、このオブジェクトのフィールドID 値に等しいフィールドID クラスで作成された例を返します。

CreateExtendedAttribute(ストレッチ)

このオブジェクトのフィールドID値と指定されたテキスト値に等しいフィールドIDを使用して新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute(string textValue)

Parameters

textValue string

指定されたテキストの価値

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、このオブジェクトのフィールドID 値に等しいフィールドID クラスで作成された例を返します。

Exceptions

InvalidOperationException

現在の Aspose.Tasks.ExtendedAttributeDefinition.CfType が「テキスト」ではない場合

CreateExtendedAttribute(デシマル)

このオブジェクトのフィールドID値と指定された数値値に等しいフィールドIDを搭載した新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute(decimal numericValue)

Parameters

numericValue decimal

定められた数値。

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、このオブジェクトのフィールドID 値に等しいフィールドID クラスで作成された例を返します。

Exceptions

InvalidOperationException

現在の Aspose.Tasks.ExtendedAttributeDefinition.CfType が「番号」または「コスト」ではない場合

CreateExtendedAttribute(DateTime)

このオブジェクトのフィールドID値と指定された日付値に等しいフィールドIDを含む新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute(DateTime dateTimeValue)

Parameters

dateTimeValue DateTime

定められた日付時間値。

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、このオブジェクトのフィールドID 値に等しいフィールドID クラスで作成された例を返します。

Exceptions

InvalidOperationException

現在の Aspose.Tasks.ExtendedAttributeDefinition.CfType が「日付」、「スタート」または「終了」ではない場合

CreateExtendedAttribute(Duration)

このオブジェクトのフィールドID値と指定期間値に等しいフィールドIDを使用して新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute(Duration durationValue)

Parameters

durationValue Duration

定められた期間の値。

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、このオブジェクトのフィールドID 値に等しいフィールドID クラスで作成された例を返します。

Exceptions

InvalidOperationException

現在の Aspose.Tasks.ExtendedAttributeDefinition.CfType が ‘Duration’ でない場合

CreateExtendedAttribute(ボール)

このオブジェクトのフィールドID値と指定されたフラッグ値に等しいフィールドIDを使用して新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute(bool flagValue)

Parameters

flagValue bool

指示された旗の価値

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、このオブジェクトのフィールドID 値に等しいフィールドID クラスで作成された例を返します。

Exceptions

InvalidOperationException

現在の Aspose.Tasks.ExtendedAttributeDefinition.CfType が ‘Flag’ でない場合

CreateExtendedAttribute(Value)

指定された Aspose.Tasks.Value 項目と関連付けられた新しい拡張属性を作成します。

public ExtendedAttribute CreateExtendedAttribute(Value lookupValue)

Parameters

lookupValue Value

指定された Aspose.Tasks.Value 項目

Returns

ExtendedAttribute

Aspose.Tasks.ExtendedAttribute クラスは、指定された Aspose.Tasks.Value アイテムと関連付けられています。

Examples

このコードを使用して、特定の値を使用して新しい Aspose.Tasks.ExtendedAttribute を作成します。

taskTextAttr.AddLookupValue(value1);
taskTextAttr.AddLookupValue(value2);
var extendedAttribute = taskTextAttr.CreateExtendedAttribute(value2);

Remarks

lookupValue’ should be previously added to the Aspose.Tasks.ExtendedAttributeDefinition using Aspose.Tasks.ExtendedAttributeDefinition.AddLookupValue(Aspose.Tasks.Value) method.

CreateLookupResourceDefinition(拡張AttributeResource, string)

Lookup.It has Aspose.Tasks.ExtendedAttributeDefinition.CalculationType equals to Aspose.Tasks.CalculationType.Lookup and can be used in Resources only.You are required to specify fieldId’ and alias’ when calling this method. フィールドタイプはフィールドIDから引き出されます。

public static ExtendedAttributeDefinition CreateLookupResourceDefinition(ExtendedAttributeResource fieldId, string alias)

Parameters

fieldId ExtendedAttributeResource

指定した Aspose.Tasks.ExtendedAttributeResource フィールド ID.

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された fieldId’ と alias を含みます。

Examples

この例を使用して、検索アップでリソースにカスタマイズされたフィールド定義を作成し、テキスト値で記入します。

var resourceTextAttr = ExtendedAttributeDefinition.CreateLookupResourceDefinition(ExtendedAttributeResource.Text27, "My custom field");
resourceTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });
resourceTextAttr.AddLookupValue(new Value { Id = 2, Val = "Text value 2", Description = "Text value description 2" });
project.ExtendedAttributes.Add(resourceTextAttr);

CreateLookupResourceDefinition(CustomFieldType、ExtendedAttributeResource、ストレッチ)

Lookup.It has Aspose.Tasks.ExtendedAttributeDefinition.CalculationType is equal to Aspose.Tasks.CalculationType.Lookup and can be used in Resources only.You are required to specify customFieldType’, fieldId’ and alias’ when calling this method. あなたはこの方法を指定する必要があります。

public static ExtendedAttributeDefinition CreateLookupResourceDefinition(CustomFieldType customFieldType, ExtendedAttributeResource fieldId, string alias)

Parameters

customFieldType CustomFieldType

指定した Aspose.Tasks.CustomFieldType タイプ。

fieldId ExtendedAttributeResource

指定した Aspose.Tasks.ExtendedAttributeResource フィールド ID.

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された customFieldType’, fieldId’ と alias を含みます。

Examples

この例を使用して、検索アップでリソースにカスタマイズされたフィールド定義を作成し、テキスト値で記入します。

var resourceTextAttr = ExtendedAttributeDefinition.CreateLookupResourceDefinition(CustomFieldType.Text, ExtendedAttributeResource.Text27, "My custom field");
resourceTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });
resourceTextAttr.AddLookupValue(new Value { Id = 2, Val = "Text value 2", Description = "Text value description 2" });
project.ExtendedAttributes.Add(resourceTextAttr);

CreateLookupTaskDefinition(ストレッチ ストレッチ ストレッチ)

Lookup.It has Aspose.Tasks.ExtendedAttributeDefinition.CalculationType equals to Aspose.Tasks.CalculationType.Lookup and can be used in Tasks only.You are required to specify fieldId’ and alias’ when calling this method. フィールドタイプはフィールドIDから引き出されます。

public static ExtendedAttributeDefinition CreateLookupTaskDefinition(ExtendedAttributeTask fieldId, string alias)

Parameters

fieldId ExtendedAttributeTask

Aspose.Tasks.ExtendedAttributeTask フィールド ID を指定します。

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された fieldId’ と alias を含みます。

Examples

この例を使用して、検索アップタスクのカスタマイズフィールド定義を作成し、テキスト値で記入します。

var taskTextAttr = ExtendedAttributeDefinition.CreateLookupTaskDefinition(ExtendedAttributeTask.Text27, "My custom field");
taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });
taskTextAttr.AddLookupValue(new Value { Id = 2, Val = "Text value 2", Description = "Text value description 2" });
project.ExtendedAttributes.Add(taskTextAttr);

CreateLookupTaskDefinition(CustomFieldType、ExtendedAttributeTask、ストレッチ)

Lookup.It で拡張属性の定義を作成する工場方法は Aspose.Tasks.ExtendedAttributeDefinition.CalculationType は Aspose.Tasks.CalculationType.Lookup と同等であり、タスクのみで使用できます。You are required to specify customFieldType’, fieldId’ and alias’ when calling this method.

public static ExtendedAttributeDefinition CreateLookupTaskDefinition(CustomFieldType customFieldType, ExtendedAttributeTask fieldId, string alias)

Parameters

customFieldType CustomFieldType

指定した Aspose.Tasks.CustomFieldType タイプ。

fieldId ExtendedAttributeTask

Aspose.Tasks.ExtendedAttributeTask フィールド ID を指定します。

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された customFieldType’, fieldId’ と alias を含みます。

Examples

この例を使用して、検索アップタスクのカスタマイズフィールド定義を作成し、テキスト値で記入します。

var taskTextAttr = ExtendedAttributeDefinition.CreateLookupTaskDefinition(CustomFieldType.Text, ExtendedAttributeTask.Text27, "My custom field");
taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });
taskTextAttr.AddLookupValue(new Value { Id = 2, Val = "Text value 2", Description = "Text value description 2" });
project.ExtendedAttributes.Add(taskTextAttr);

CreateResourceDefinition(CustomFieldType、ExtendedAttributeResource、ストレッチ)

単純な拡張属性の定義を作成する工場方法は、Microsoft Project が表示する「None」です。それは Aspose.Tasks.ExtendedAttributeDefinition.CalculationType は Aspose.Tasks.CalculationType.None と同等であり、リソースのみで使用できます。この方法を呼び出すときに customFieldType、 fieldId と alias を指定する必要があります。

public static ExtendedAttributeDefinition CreateResourceDefinition(CustomFieldType customFieldType, ExtendedAttributeResource fieldId, string alias)

Parameters

customFieldType CustomFieldType

指定した Aspose.Tasks.CustomFieldType タイプ。

fieldId ExtendedAttributeResource

指定した Aspose.Tasks.ExtendedAttributeResource フィールド ID.

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された customFieldType’, fieldId’ と alias を含みます。

Examples

この例を使用して、カスタマイズされたテキストフィールドの定義を作成します:

var resourceTextAttr = ExtendedAttributeDefinition.CreateResourceDefinition(CustomFieldType.Text, ExtendedAttributeResource.Text27, "My custom field");
project.ExtendedAttributes.Add(resourceTextAttr);

CreateResourceDefinition(拡張AttributeResource, string)

単純な拡張属性の定義を作成する工場方法、Microsoft プロジェクトは「None」として表示されます。それは Aspose.Tasks.ExtendedAttributeDefinition.CalculationType は Aspose.Tasks.CalculationType.None と同等であり、リソースのみで使用することができます。この方法を呼び出すときに fieldId’ と alias’ を指定する必要があります。

public static ExtendedAttributeDefinition CreateResourceDefinition(ExtendedAttributeResource fieldId, string alias)

Parameters

fieldId ExtendedAttributeResource

指定した Aspose.Tasks.ExtendedAttributeResource フィールド ID.

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された fieldId’ と alias を含みます。

Examples

この例を使用して、カスタマイズされたテキストフィールドの定義を作成します:

var resourceTextAttr = ExtendedAttributeDefinition.CreateResourceDefinition(ExtendedAttributeResource.Text27, "My custom field");
project.ExtendedAttributes.Add(resourceTextAttr);

CreateTaskDefinition(CustomFieldType、ExtendedAttributeTask、ストレッチ)

単純な拡張属性の定義を作成する工場方法は、Microsoft Project が表示する「None」です。それは Aspose.Tasks.ExtendedAttributeDefinition.CalculationType は Aspose.Tasks.CalculationType.None と同等であり、タスクのみで使用できます。この方法を呼び出すときに customFieldType、 fieldId と alias を指定する必要があります。

public static ExtendedAttributeDefinition CreateTaskDefinition(CustomFieldType customFieldType, ExtendedAttributeTask fieldId, string alias)

Parameters

customFieldType CustomFieldType

指定した Aspose.Tasks.CustomFieldType タイプ。

fieldId ExtendedAttributeTask

Aspose.Tasks.ExtendedAttributeTask フィールド ID を指定します。

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された customFieldType’, fieldId’ と alias を含みます。

Examples

この例を使用して、カスタマイズされたテキストフィールドの定義を作成します:

var taskTextAttr = ExtendedAttributeDefinition.CreateTaskDefinition(CustomFieldType.Text, ExtendedAttributeTask.Text27, "My custom field");
project.ExtendedAttributes.Add(taskTextAttr);

CreateTaskDefinition(ストレッチ ストレッチ ストレッチ)

単純な拡張属性の定義を作成する工場方法、Microsoft プロジェクトは「None」として表示されます。それは Aspose.Tasks.ExtendedAttributeDefinition.CalculationTypeは Aspose.Tasks.CalculationType.None と同等であり、タスクのみで使用することができます。あなたはこの方法を呼び出すときに fieldId’ と alias’ を指定する必要があります。

public static ExtendedAttributeDefinition CreateTaskDefinition(ExtendedAttributeTask fieldId, string alias)

Parameters

fieldId ExtendedAttributeTask

Aspose.Tasks.ExtendedAttributeTask フィールド ID を指定します。

alias string

指定された System.String alias です。

Returns

ExtendedAttributeDefinition

Aspose.Tasks.ExtendedAttributeDefinition class の作成例は、指定された fieldId’ と alias を含みます。

Examples

この例を使用して、カスタマイズされたテキストフィールドの定義を作成します:

var taskTextAttr = ExtendedAttributeDefinition.CreateTaskDefinition(ExtendedAttributeTask.Text27, "My custom field");
project.ExtendedAttributes.Add(taskTextAttr);

Equals(対象)

指示されたオブジェクトに等しいかどうかを示す旗を返します。

public override bool Equals(object obj)

Parameters

obj object

この例に比べるために指定された物体。

Returns

bool

この例が指定された物体に等しいかどうかを示す旗。

GetHashCode()

Aspose.Tasks.ExtendedAttributeDefinitionクラスのハッシュコードを返します。

public override int GetHashCode()

Returns

int

このオブジェクトのハッシュコード

RemoveLookupValue(Value)

内部検索リストから値を削除します. これは Aspose.Tasks.ExtendedAttributeDefinition.ValueList の操作の最適な方法です。

public void RemoveLookupValue(Value value)

Parameters

value Value

検索から取り除く価値

Remarks

この方法は Aspose.Tasks.ExtendedAttributeDefinition 例のみで動作します。Aspose.Tasks.ExtendedAttributeDefinition.CalculationType は Aspose.Tasks.CalculationType.Lookup と同等です。

 日本語