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
รับหรือตั้งค่า alias ของ field ที่กําหนดเอง
public string Alias { get; set; }
คุณสมบัติมูลค่า
AppendNewValues
ได้รับหรือตั้งค่าค่าแสดงให้เห็นว่าค่าใหม่ที่เพิ่มไปยังโครงการจะเพิ่มลงในรายการโดยอัตโนมัติ
public bool AppendNewValues { get; set; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ MSP 2003/2007 Xml และ MSP 2003 mpp
AutoRollDown
ได้รับหรือตั้งค่าค่าแสดงให้เห็นว่าการหมุนอัตโนมัติไปยังคําสั่งจะเปิดใช้งานหรือไม่
public bool AutoRollDown { get; set; }
คุณสมบัติมูลค่า
CalculationType
รับหรือตั้งค่าประเภทการคํานวณของมูลค่าของคุณสมบัติที่กําหนดเอง
public CalculationType CalculationType { get; set; }
คุณสมบัติมูลค่า
CfType
ได้รับประเภทของพื้นที่ที่กําหนดเอง
public CustomFieldType CfType { get; }
คุณสมบัติมูลค่า
Default
รับหรือตั้งค่าเริ่มต้นในรายการ
public string Default { get; set; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ MSP 2003/2007 Xml และ MSP 2003 mpp
DefaultGuid
รับหรือตั้งค่าคู่มือการเข้าสู่ระบบตารางการค้นหาแบบกําหนดเอง
public string DefaultGuid { get; set; }
คุณสมบัติมูลค่า
ElementType
ได้รับหรือตั้งค่า attribute ที่ขยายมาเชื่อมต่อด้วยงานทรัพยากรหรือคําสั่ง
public ElementType ElementType { get; set; }
คุณสมบัติมูลค่า
FieldId
Gets หรือ sets corresponds to the project ID of a custom field.ใช้การแสดงแถวของแถบจากคลาส Aspose.Tasks.ExtendedAttributeTask เพื่อระบุคุณสมบัติ Aspose.Tasks.ExtendedAttributeDefinition.FieldId
public string FieldId { get; set; }
คุณสมบัติมูลค่า
Examples
customFieldDefinition.FieldId = Aspose.Tasks.ExtendedAttributeTask.Number10.ToString("D");
Remarks
วิธีที่ดีที่สุดในการตั้งค่า Aspose.Tasks.ExtendedAttributeDefinition.FieldId คุณสมบัติคือการสร้าง Aspose.Tasks.ExtendedAttributeDefinitionใช้หนึ่งในวิธีการโรงงานเฉพาะเช่น 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; }
คุณสมบัติมูลค่า
Remarks
ไม่ควรตั้งค่าโดยตรงแทนที่จะสร้าง ExtendedAttributeDefinition โดยใช้วิธีการโรงงาน static ที่พิมพ์อย่างแข็งแกร่งที่เรียกว่า Create*Definition().
Formula
รับหรือตั้งค่าสูตรที่ Microsoft Project ใช้ในการตั้งค่าฟิลด์งานที่กําหนดเอง
public string Formula { get; set; }
คุณสมบัติมูลค่า
GraphicalIndicator
รับหรือตั้งค่าข้อมูลตัวชี้วัดกราฟิกที่เกี่ยวข้องกับคุณสมบัติที่ขยายสามารถใช้งานได้ในรูปแบบ MPP
public GraphicalIndicatorsInfo GraphicalIndicator { get; set; }
คุณสมบัติมูลค่า
Guid
รับหรือตั้งค่าคู่มือของสนามที่กําหนดเอง
public string Guid { get; set; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ XML เท่านั้น
LookupUid
รับคู่มือของตารางการค้นหาที่เกี่ยวข้องกับฟิลด์ที่กําหนดเอง
public string LookupUid { get; }
คุณสมบัติมูลค่า
Remarks
เพื่อสร้างฟิลด์ที่กําหนดเองด้วย Searchup ใช้หนึ่งในวิธีการโรงงาน: 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; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ XML เท่านั้น
ParentProject
ได้รับโครงการแม่สําหรับตัวอย่าง Aspose.Tasks.ExtendedAttributeDefinition
public Project ParentProject { get; }
คุณสมบัติมูลค่า
PhoneticsAlias
รับหรือตั้งค่าเสียงเสียงของ alias ของสนามที่กําหนดเอง
public string PhoneticsAlias { get; set; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ XML เท่านั้น
RestrictValues
ได้รับหรือตั้งค่าค่าแสดงให้เห็นว่าค่าฟิลด์ที่กําหนดเองจะ จํากัด ไปยังค่าใน Aspose.Tasks.ExtendedAttributeDefinition.ValueList
public bool RestrictValues { get; set; }
คุณสมบัติมูลค่า
RollupType
รับหรือตั้งค่าวิธีการวาล์วจะถูกคํานวณ
public RollupType RollupType { get; set; }
คุณสมบัติมูลค่า
Remarks
การเขียนในขณะนี้ได้รับการสนับสนุนสําหรับรูปแบบ XMLเท่านั้น
SecondaryGuid
ได้รับหรือตั้งค่าคําแนะนําด้านล่างของคุณสมบัติที่ขยาย
public string SecondaryGuid { get; set; }
คุณสมบัติมูลค่า
Remarks
นี่เป็นใหม่สําหรับคุณสมบัติของ MS Project 2010
SecondaryPid
รับหรือตั้งค่า PID คู่ของฟิลด์ที่กําหนดเอง
public string SecondaryPid { get; set; }
คุณสมบัติมูลค่า
SummaryRowsCalculationType
รับหรือตั้งค่าประเภทการคํานวณของมูลค่าของคุณสมบัติที่กําหนดเองสําหรับเส้นคํานวณ
public SummaryRowsCalculationType SummaryRowsCalculationType { get; set; }
คุณสมบัติมูลค่า
UserDef
รับหรือตั้งค่าหมายความว่าสนามที่กําหนดเองจะถูกกําหนดโดยผู้ใช้หรือไม่
public bool UserDef { get; set; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ XML เท่านั้น
ValueList
รับรายการ<มูลค่า> ValueList
public List<value> ValueList { get; }
คุณสมบัติมูลค่า
Remarks
เมื่อค่าของคุณสมบัติขยายจะระบุเป็นคุณสมบัติขององค์ประกอบในแผนที่พวกเขาสามารถระบุได้โดยค่าหรือโดยการอ้างอิงถึงค่าที่อยู่ในรายการนี้การสมัครอาจรับผิดชอบในการสั่งซื้อของรายการโดยการสั่งซื้อที่ระบุไว้ที่นี่ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ MSP 2003/2007 Xml และ MSP 2003 mppอย่าเปลี่ยนรายการนี้โดยตรง ใช้วิธีการ ExtendedAttributeDefinition.AddLookupValue/RemoveLookupValue แทน
ValuelistSortOrder
รับหรือตั้งค่าวิธีการที่รายการมูลค่าจะถูกจัดอันดับ ราคาคือ: 0=ลดลง 1=เพิ่มขึ้น
public int ValuelistSortOrder { get; set; }
คุณสมบัติมูลค่า
Remarks
ปัจจุบันได้รับการสนับสนุนสําหรับรูปแบบ MSP 2003/2007 Xml และ MSP 2003 mpp
Methods
AddLookupValue(Value)
เพิ่มค่าไปยังรายการการค้นหาภายใน นี่เป็นวิธีที่ดีที่สุดในการจัดการกับ Aspose.Tasks.ExtendedAttributeDefinition.ValueList
public void AddLookupValue(Value value)
Parameters
value
Value
ค่าใช้จ่ายที่จะเพิ่มลงใน Lookup
Examples
ใช้รหัสนี้เพื่อเพิ่มค่าใหม่เพื่อค้นหารายการ:taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });
Remarks
วิธีการนี้ทํางานเฉพาะสําหรับตัวอย่าง Aspose.Tasks.ExtendedAttributeDefinitionซึ่งมี Aspose.Tasks.ExtendedAttributeDefinition.Calculation ประเภทเท่ากับ Aspose.Tasks.Calculation ประเภท.Lookup
CreateExtendedAttribute()
สร้างคุณสมบัติขยายใหม่พร้อม ID field ซึ่งเท่ากับค่า ID field ของวัตถุนี้
public ExtendedAttribute CreateExtendedAttribute()
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class with the fieldID which equals to the fieldID value of this object.
CreateExtendedAttribute(รั้ว)
สร้างคุณสมบัติขยายใหม่พร้อม ID field ซึ่งเท่ากับค่า ID field ของวัตถุนี้และค่าข้อความที่ระบุ
public ExtendedAttribute CreateExtendedAttribute(string textValue)
Parameters
textValue
string
หมายเลขข้อความที่ระบุ
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class with the fieldID which equals to the fieldID value of this object.
Exceptions
หากปัจจุบัน Aspose.Tasks.ExtendedAttributeDefinition.CfType ไม่ใช่ ‘ข้อความ’
CreateExtendedAttribute(ตุลาคม)
สร้างคุณสมบัติขยายใหม่พร้อม ID field ซึ่งเท่ากับค่า ID field ของวัตถุนี้และค่าดิจิตอลที่ระบุ
public ExtendedAttribute CreateExtendedAttribute(decimal numericValue)
Parameters
numericValue
decimal
หมายเลขที่ระบุ
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class with the fieldID which equals to the fieldID value of this object.
Exceptions
หากปัจจุบัน Aspose.Tasks.ExtendedAttributeDefinition.CfType ไม่ใช่ ‘หมายเลข’ หรือ ‘ต้นทุน’
CreateExtendedAttribute(DateTime)
สร้างคุณสมบัติขยายใหม่พร้อม ID field ซึ่งเท่ากับค่า ID field ของวัตถุนี้และค่าวันที่ที่ระบุ
public ExtendedAttribute CreateExtendedAttribute(DateTime dateTimeValue)
Parameters
dateTimeValue
DateTime
หมายเลขเวลาที่กําหนด
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class with the fieldID which equals to the fieldID value of this object.
Exceptions
หากปัจจุบัน Aspose.Tasks.ExtendedAttributeDefinition.CfType ไม่ใช่ ‘วันที่’, ‘เริ่มต้น’ หรือ ‘สิ้นสุด’
CreateExtendedAttribute(Duration)
สร้างคุณสมบัติขยายใหม่พร้อม ID field ซึ่งเท่ากับค่า ID field ของวัตถุนี้และค่าระยะเวลาที่ระบุ
public ExtendedAttribute CreateExtendedAttribute(Duration durationValue)
Parameters
durationValue
Duration
อัตราระยะเวลาที่ระบุ
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class with the fieldID which equals to the fieldID value of this object.
Exceptions
หากปัจจุบัน Aspose.Tasks.ExtendedAttributeDefinition.CfType ไม่ใช่ ‘ระยะเวลา’
CreateExtendedAttribute(บอล)
สร้างคุณสมบัติขยายใหม่พร้อม ID field ซึ่งเท่ากับค่า ID field ของวัตถุนี้และค่าป้ายที่ระบุ
public ExtendedAttribute CreateExtendedAttribute(bool flagValue)
Parameters
flagValue
bool
หมายเลขหมายเลขหมายเลข
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class with the fieldID which equals to the fieldID value of this object.
Exceptions
หากปัจจุบัน Aspose.Tasks.ExtendedAttributeDefinition.CfType ไม่ใช่ ‘旗’
CreateExtendedAttribute(Value)
สร้างคุณสมบัติขยายใหม่ที่เชื่อมต่อกับ Aspose.Tasks.Value รายการที่ระบุ
public ExtendedAttribute CreateExtendedAttribute(Value lookupValue)
Parameters
lookupValue
Value
รายการ Aspose.Tasks.Value ที่ระบุไว้
Returns
กลับตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttribute class เชื่อมต่อกับ 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(ExtendedAttributeResource, string)
วิธีการโรงงานที่สร้างคําอธิบายคุณสมบัติที่ขยายด้วย lookup.It มี Aspose.Tasks.ExtendedAttributeDefinition.CalculationType เป็น Aspose.Tasks.CalculationType.Lookup และสามารถใช้ในทรัพยากรเท่านั้น คุณจะต้องระบุ fieldId’ และ
alias’ เมื่อเรียกวิธีการนี้ ประเภทสนามจะถูกลบออกจาก ID field
public static ExtendedAttributeDefinition CreateLookupResourceDefinition(ExtendedAttributeResource fieldId, string alias)
Parameters
fieldId
ExtendedAttributeResource
ตัวระบุ Aspose.Tasks.ExtendedAttributeResource ID
alias
string
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ 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, string)
วิธีการโรงงานที่สร้างคําอธิบายคุณสมบัติที่ขยายด้วย lookup.It มี Aspose.Tasks.ExtendedAttributeDefinition.CalculationType เป็น Aspose.Tasks.CalculationType.Lookup และสามารถใช้ในทรัพยากรเท่านั้น คุณต้องระบุ customFieldType’,
fieldId’ และ
alias’ เมื่อเรียกวิธีการนี้
public static ExtendedAttributeDefinition CreateLookupResourceDefinition(CustomFieldType customFieldType, ExtendedAttributeResource fieldId, string alias)
Parameters
customFieldType
CustomFieldType
ประเภท Aspose.Tasks.CustomFieldType ที่กําหนด
fieldId
ExtendedAttributeResource
ตัวระบุ Aspose.Tasks.ExtendedAttributeResource ID
alias
string
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ 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(ExtendedAttributeTask, string)
วิธีการโรงงานที่สร้างคําอธิบายคุณสมบัติที่ขยายด้วย lookup.It มี Aspose.Tasks.ExtendedAttributeDefinition.CalculationType เป็น Aspose.Tasks.CalculationType.Lookup และสามารถนํามาใช้ในงานเท่านั้น คุณต้องระบุ fieldId’ และ
alias’ เมื่อเรียกวิธีการนี้ ประเภทสนามจะได้รับจาก ID field
public static ExtendedAttributeDefinition CreateLookupTaskDefinition(ExtendedAttributeTask fieldId, string alias)
Parameters
fieldId
ExtendedAttributeTask
ตัวระบุ Aspose.Tasks.ExtendedAttributeTask ID
alias
string
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ 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, string)
วิธีการโรงงานที่สร้างคําอธิบายคุณสมบัติที่ขยายด้วย lookup.It มี Aspose.Tasks.ExtendedAttributeDefinition.CalculationType เป็น Aspose.Tasks.CalculationType.Lookup และสามารถใช้ในงานเท่านั้น คุณต้องระบุ customFieldType’,
fieldId’ และ
alias’ เมื่อเรียกวิธีการนี้
public static ExtendedAttributeDefinition CreateLookupTaskDefinition(CustomFieldType customFieldType, ExtendedAttributeTask fieldId, string alias)
Parameters
customFieldType
CustomFieldType
ประเภท Aspose.Tasks.CustomFieldType ที่กําหนด
fieldId
ExtendedAttributeTask
ตัวระบุ Aspose.Tasks.ExtendedAttributeTask ID
alias
string
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ 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, string)
วิธีการโรงงานที่สร้างคําจํากัดความคุณสมบัติที่ขยายง่ายซึ่ง Microsoft Project แสดงเป็น “ไม่มี” มันมี 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
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttributeDefinition class ด้วย customFieldType’,
fieldId’ และ
alias’.
Examples
ใช้ตัวอย่างนี้เพื่อสร้างการกําหนดค่าฟิลด์ข้อความที่กําหนดเอง:
var resourceTextAttr = ExtendedAttributeDefinition.CreateResourceDefinition(CustomFieldType.Text, ExtendedAttributeResource.Text27, "My custom field");
project.ExtendedAttributes.Add(resourceTextAttr);
CreateResourceDefinition(ExtendedAttributeResource, string)
วิธีการโรงงานที่สร้างคําจํากัดความคุณสมบัติที่ขยายง่ายซึ่ง Microsoft Project แสดงเป็น “ไม่มี” มันมี Aspose.Tasks.ExtendedAttributeDefinition.CalculationType เป็น Aspose.Tasks.CalculationType.None และสามารถใช้ได้ในทรัพยากรเท่านั้น คุณต้องระบุ fieldId’ และ
alias’ เมื่อเรียกวิธีการนี้ ประเภทสนามจะถูกลบออกจาก ID field
public static ExtendedAttributeDefinition CreateResourceDefinition(ExtendedAttributeResource fieldId, string alias)
Parameters
fieldId
ExtendedAttributeResource
ตัวระบุ Aspose.Tasks.ExtendedAttributeResource ID
alias
string
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttributeDefinition class ด้วย fieldId’ และ
alias" ที่ระบุไว้
Examples
ใช้ตัวอย่างนี้เพื่อสร้างการกําหนดค่าฟิลด์ข้อความที่กําหนดเอง:
var resourceTextAttr = ExtendedAttributeDefinition.CreateResourceDefinition(ExtendedAttributeResource.Text27, "My custom field");
project.ExtendedAttributes.Add(resourceTextAttr);
CreateTaskDefinition(CustomFieldType, ExtendedAttributeTask, string)
วิธีการโรงงานที่สร้างคําจํากัดความคุณสมบัติที่ขยายง่ายซึ่ง Microsoft Project แสดงเป็น “ไม่มี” มันมี 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
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ Aspose.Tasks.ExtendedAttributeDefinition class ด้วย customFieldType’,
fieldId’ และ
alias'.
Examples
ใช้ตัวอย่างนี้เพื่อสร้างการกําหนดค่าฟิลด์ข้อความที่กําหนดเอง:
var taskTextAttr = ExtendedAttributeDefinition.CreateTaskDefinition(CustomFieldType.Text, ExtendedAttributeTask.Text27, "My custom field");
project.ExtendedAttributes.Add(taskTextAttr);
CreateTaskDefinition(ExtendedAttributeTask, string)
วิธีการโรงงานที่สร้างคําอธิบายของคุณสมบัติที่ขยายง่ายซึ่ง Microsoft Project แสดงเป็น “ไม่มี” มันมี Aspose.Tasks.ExtendedAttributeDefinition.CalculationType เป็น Aspose.Tasks.CalculationType.None และสามารถใช้ในงานเท่านั้น คุณต้องระบุ fieldId’ และ
alias’ เมื่อเรียกวิธีการนี้ ประเภทสนามจะถอดออกจาก ID field
public static ExtendedAttributeDefinition CreateTaskDefinition(ExtendedAttributeTask fieldId, string alias)
Parameters
fieldId
ExtendedAttributeTask
ตัวระบุ Aspose.Tasks.ExtendedAttributeTask ID
alias
string
ระบบที่ระบุ String alias
Returns
ตัวอย่างที่สร้างขึ้นของ 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
ปลั๊กที่แสดงให้เห็นว่าตัวอย่างนี้เท่ากับวัตถุที่ระบุ
GetHashCode()
กลับรหัส hash สําหรับตัวอย่างของ Aspose.Tasks.ExtendedAttributeDefinition class
public override int GetHashCode()
Returns
รหัส hash สําหรับวัตถุนี้
RemoveLookupValue(Value)
ลบค่าจากรายการการค้นหาภายใน นี่เป็นวิธีที่เหมาะสมในการจัดการกับ Aspose.Tasks.ExtendedAttributeDefinition.ValueList
public void RemoveLookupValue(Value value)
Parameters
value
Value
ค่าใช้จ่ายในการลบจาก Lookup
Remarks
วิธีการนี้ทํางานเฉพาะสําหรับตัวอย่าง Aspose.Tasks.ExtendedAttributeDefinitionซึ่งมี Aspose.Tasks.ExtendedAttributeDefinition.Calculation ประเภทเท่ากับ Aspose.Tasks.Calculation ประเภท.Lookup