/// <summary> /// 判斷指定特性物件是否存在集合內 /// </summary> /// <param name="item">特性物件</param> /// <returns>如果特性物件在集合中則為 true,否則為 false。</returns> public bool Contains(PropertyBase item) { return(_Collection.Contains(item)); }
/// <summary> /// 新增特性生效延遲器 /// </summary> /// <param name="duration">持續時間(毫秒),小於0為永久</param> /// <param name="property">要延遲生效的特性</param> public PropertyDelay(int duration, PropertyBase property) { DurationTime.Limit = duration; Property = property; }