PathSegmentCollection 构造函数

定义

初始化 PathSegmentCollection 类的新实例。

重载

名称 说明
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

例外

collectionnull

适用于

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

适用于