GradientStopCollection 建構函式

定義

初始化 GradientStopCollection 類別的新執行個體。

多載

GradientStopCollection()

初始化 GradientStopCollection 類別的新執行個體。

GradientStopCollection(IEnumerable<GradientStop>)

初始化 GradientStopCollection 類別的新執行個體,這個執行個體包含指定之集合中的元素。

GradientStopCollection(Int32)

初始化 GradientStopCollection 類別的新執行個體,此類別初始可以儲存指定的項目數目。

GradientStopCollection()

初始化 GradientStopCollection 類別的新執行個體。

public:
 GradientStopCollection();
public GradientStopCollection ();
Public Sub New ()

適用於

GradientStopCollection(IEnumerable<GradientStop>)

初始化 GradientStopCollection 類別的新執行個體,這個執行個體包含指定之集合中的元素。

public:
 GradientStopCollection(System::Collections::Generic::IEnumerable<System::Windows::Media::GradientStop ^> ^ collection);
public GradientStopCollection (System.Collections.Generic.IEnumerable<System.Windows.Media.GradientStop> collection);
new System.Windows.Media.GradientStopCollection : seq<System.Windows.Media.GradientStop> -> System.Windows.Media.GradientStopCollection
Public Sub New (collection As IEnumerable(Of GradientStop))

參數

collection
IEnumerable<GradientStop>

要複製的集合。

例外狀況

collectionnull

適用於

GradientStopCollection(Int32)

初始化 GradientStopCollection 類別的新執行個體,此類別初始可以儲存指定的項目數目。

public:
 GradientStopCollection(int capacity);
public GradientStopCollection (int capacity);
new System.Windows.Media.GradientStopCollection : int -> System.Windows.Media.GradientStopCollection
Public Sub New (capacity As Integer)

參數

capacity
Int32

集合一開始可供存放的 GradientStop 物件數目。

適用於