PathSegmentCollection 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 PathSegmentCollection 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| PathSegmentCollection() |
初始化 PathSegmentCollection 類別的新執行個體。 |
| PathSegmentCollection(IEnumerable<PathSegment>) |
初始化一個新的類別實例 PathSegmentCollection ,使用指定的物件集合 PathSegment 。 |
| PathSegmentCollection(Int32) |
初始化一個新的類別實例 PathSegmentCollection ,容量為指定容量,即集合最初能儲存的物件數量 PathSegment 。 |
PathSegmentCollection()
初始化 PathSegmentCollection 類別的新執行個體。
public:
PathSegmentCollection();
public PathSegmentCollection();
Public Sub New ()
適用於
PathSegmentCollection(IEnumerable<PathSegment>)
初始化一個新的類別實例 PathSegmentCollection ,使用指定的物件集合 PathSegment 。
public:
PathSegmentCollection(System::Collections::Generic::IEnumerable<System::Windows::Media::PathSegment ^> ^ collection);
public PathSegmentCollection(System.Collections.Generic.IEnumerable<System.Windows.Media.PathSegment> collection);
new System.Windows.Media.PathSegmentCollection : seq<System.Windows.Media.PathSegment> -> System.Windows.Media.PathSegmentCollection
Public Sub New (collection As IEnumerable(Of PathSegment))
參數
- collection
- IEnumerable<PathSegment>
組成 的物件集合PathSegment。PathSegmentCollection
例外狀況
collection 是 null。
適用於
PathSegmentCollection(Int32)
初始化一個新的類別實例 PathSegmentCollection ,容量為指定容量,即集合最初能儲存的物件數量 PathSegment 。
public:
PathSegmentCollection(int capacity);
public PathSegmentCollection(int capacity);
new System.Windows.Media.PathSegmentCollection : int -> System.Windows.Media.PathSegmentCollection
Public Sub New (capacity As Integer)
參數
- capacity
- Int32
收藏最初能儲存的物件數量 PathSegment 。