Class TimephasedDataCollection
名称: Aspose.Tasks 集合: Aspose.Tasks.dll (25.4.0)
代表一系列 Aspose.Tasks.TimephasedData 对象。
public abstract class TimephasedDataCollection : IList<timephaseddata>, ICollection<timephaseddata>, IEnumerable<timephaseddata>, IEnumerable
Inheritance
object ← TimephasedDataCollection
Implements
IList
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TimephasedDataCollection()
启动 Aspose.Tasks.TimephasedDataCollection 类的新例子。
protected TimephasedDataCollection()
Properties
Count
获取本 Aspose.Tasks.TimephasedDataCollection 对象中的对象数量。
public int Count { get; }
财产价值
IsReadOnly
收到一个值,表明 System.Collections.Generic.ICollection`1 是否仅可阅读。
public bool IsReadOnly { get; }
财产价值
这个[因特]
将元素返回指定的指数. 设置配件不支持。财产设置时间段数据。
public TimephasedData this[int index] { get; set; }
财产价值
Methods
Add(TimephasedData)
添加 Aspose.Tasks.TimephasedData 例子到此收集对象。
public void Add(TimephasedData item)
Parameters
item
TimephasedData
要添加的项目。
Exceptions
如果参数 td 是零。
AddRange(此分類上一篇: Timephaseddata>)
将 Aspose.Tasks.TimephasedData 示例添加到此集合对象中。
public void AddRange(IEnumerable<timephaseddata> timephasedCollection)
Parameters
timephasedCollection
IEnumerable
<
TimephasedData
>
添加 Aspose.Tasks.Timephased数据对象的集合。
Clear()
从 Aspose.Tasks.TimephasedDataCollection 中删除所有项目。
public void Clear()
Contains(TimephasedData)
确定 Aspose.Tasks.TimephasedDataCollection 是否包含特定的值。
public bool Contains(TimephasedData item)
Parameters
item
TimephasedData
在收藏中找到的物品。
Returns
如果在收藏中找到 item’ 是真实的;否则,是虚假的。
CopyTo(TimephasedData( ), int)
将 Aspose.Tasks.TimephasedDataCollection 元素复制到 System.Array,从一个特定的 System.Array 指数开始。
public void CopyTo(TimephasedData[] array, int arrayIndex)
Parameters
array
TimephasedData
( )
一个尺寸的 System.Array 是从 Aspose.Tasks.TimephasedDataCollection 复制的元素的目的地。System.Array 必须有基于零的索引。
arrayIndex
int
以零为基础的指数在 array’ 中,复制开始。
Exceptions
array’ is null.
arrayIndex’ is less than 0.
源 Aspose.Tasks.TimephasedDataCollectionis 的元素数量大于从 arrayIndex’ 到目的地
array" 的可用空间。
GetEnumerator()
返回此收藏的列表。
public IEnumerator<timephaseddata> GetEnumerator()
Returns
IEnumerator < TimephasedData >
为此收藏的列表。
Remove(TimephasedData)
从此收集对象中删除 Aspose.Tasks.TimephasedData 例子。
public bool Remove(TimephasedData item)
Parameters
item
TimephasedData
要去除的物品。
Returns
如果 item’ 已成功从 Aspose.Tasks.TimephasedDataCollection 删除; 否则, false.This method also returns false if
item’ 未在 Aspose.Tasks.TimephasedDataCollection 中找到。
SelectBetweenStartAndFinish(日期,日期,日期,日期)
选择 startTime’ 和
finishTime’ 之间的所有时间阶段。
public IList<timephaseddata> SelectBetweenStartAndFinish(TimephasedDataType timephasedDataType, DateTime startTime, DateTime finishTime)
Parameters
timephasedDataType
TimephasedDataType
选择的时间段的类型。
startTime
DateTime
间隔的开始。
finishTime
DateTime
间隔结束。
Returns
IList < TimephasedData >
返回由 Start 属性订购的 Aspose.Tasks.TimephasedDataCollection 数据的新列表例。
ToList()
将 Aspose.Tasks.TimephasedDataCollection 对象转换为 Aspose.Tasks.TimephasedData 对象列表。
public List<timephaseddata> ToList()
Returns
List < TimephasedData >
列表 Aspose.Tasks.Timephased数据对象。