Class ExtendedAttributeCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
แสดงถึงคอลเลกชันของวัตถุ Aspose.Tasks.ExtendedAttribute
public class ExtendedAttributeCollection : IList<extendedattribute>, ICollection<extendedattribute>, IEnumerable<extendedattribute>, IEnumerable
การสืบทอด
object ← ExtendedAttributeCollection
การใช้งาน
IList<extendedattribute>, ICollection<extendedattribute>, IEnumerable<extendedattribute>, IEnumerable
สมาชิกที่สืบทอด
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
คุณสมบัติ
Count
ดึงจำนวนขององค์ประกอบที่อยู่ในคอลเลกชันนี้
public int Count { get; }
ค่าของคุณสมบัติ
IsReadOnly
ดึงค่าที่บ่งชี้ว่าคอลเลกชันนี้เป็นแบบอ่านอย่างเดียวหรือไม่ มิฉะนั้นจะเป็น false
public bool IsReadOnly { get; }
ค่าของคุณสมบัติ
this[int]
ดึงหรือกำหนดองค์ประกอบที่ตำแหน่งที่ระบุ
public ExtendedAttribute this[int index] { get; set; }
ค่าของคุณสมบัติ
วิธีการ
Add(ExtendedAttribute)
เพิ่มรายการที่ระบุไปยังคอลเลกชันนี้
public void Add(ExtendedAttribute item)
พารามิเตอร์
item
ExtendedAttribute
รายการที่ระบุเพื่อเพิ่มไปยังคอลเลกชันนี้
Clear()
ลบรายการทั้งหมดจากคอลเลกชันนี้
public void Clear()
Contains(ExtendedAttribute)
คืนค่า true หากพบรายการที่ระบุในคอลเลกชันนี้ มิฉะนั้นจะเป็น false
public bool Contains(ExtendedAttribute item)
พารามิเตอร์
item
ExtendedAttribute
รายการที่ระบุเพื่อค้นหา
คืนค่า
true หากพบรายการที่ระบุในคอลเลกชันนี้ มิฉะนั้นจะเป็น false
CopyTo(ExtendedAttribute[], int)
คัดลอกองค์ประกอบของคอลเลกชันนี้ไปยังอาร์เรย์ที่ระบุ โดยเริ่มต้นที่ดัชนีอาร์เรย์ที่ระบุ
public void CopyTo(ExtendedAttribute[] array, int arrayIndex)
พารามิเตอร์
array
ExtendedAttribute[]
อาร์เรย์หนึ่งมิติที่ระบุเพื่อคัดลอกองค์ประกอบไปยัง
arrayIndex
int
ดัชนีที่เริ่มต้น (ฐานศูนย์) ของอาร์เรย์ที่ระบุซึ่งการคัดลอกเริ่มต้น
GetEnumerator()
คืนค่า enumerator สำหรับคอลเลกชันนี้
public IEnumerator<extendedattribute> GetEnumerator()
คืนค่า
IEnumerator<ExtendedAttribute>
enumerator สำหรับคอลเลกชันนี้
IndexOf(ExtendedAttribute)
กำหนดดัชนีของรายการที่ระบุในคอลเลกชันนี้
public int IndexOf(ExtendedAttribute item)
พารามิเตอร์
item
ExtendedAttribute
รายการที่ระบุเพื่อหาตำแหน่งในคอลเลกชันนี้
คืนค่า
ดัชนีของรายการที่ระบุหากพบ มิฉะนั้นจะเป็น -1
Insert(int, ExtendedAttribute)
แทรกรายการที่ระบุที่ดัชนีที่ระบุ
public void Insert(int index, ExtendedAttribute item)
พารามิเตอร์
index
int
ดัชนีที่ระบุ (ฐานศูนย์) ที่รายการควรถูกแทรก
item
ExtendedAttribute
รายการที่ระบุเพื่อแทรกไปยังคอลเลกชันนี้
Remove(ExtendedAttribute)
ลบการเกิดขึ้นครั้งแรกของวัตถุเฉพาะจากคอลเลกชันนี้
public bool Remove(ExtendedAttribute item)
พารามิเตอร์
item
ExtendedAttribute
วัตถุที่ระบุเพื่อลบ
คืนค่า
true หากวัตถุที่ระบุถูกลบออกจากคอลเลกชันนี้สำเร็จ มิฉะนั้นจะเป็น false
RemoveAt(int)
ลบรายการที่ดัชนีที่ระบุ
public void RemoveAt(int index)
พารามิเตอร์
index
int
ดัชนีที่ระบุ (ฐานศูนย์) เพื่อทำการลบรายการ </extendedattribute></extendedattribute></extendedattribute>