GradientStopCollection Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der GradientStopCollection-Klasse.
Überlädt
| Name | Beschreibung |
|---|---|
| GradientStopCollection() |
Initialisiert eine neue Instanz der GradientStopCollection-Klasse. |
| GradientStopCollection(IEnumerable<GradientStop>) |
Initialisiert eine neue Instanz der GradientStopCollection Klasse, die die Elemente in der angegebenen Auflistung enthält. |
| GradientStopCollection(Int32) |
Initialisiert eine neue Instanz der GradientStopCollection Klasse, die anfänglich in der Lage ist, die angegebene Anzahl von Elementen zu speichern. |
GradientStopCollection()
Initialisiert eine neue Instanz der GradientStopCollection-Klasse.
public:
GradientStopCollection();
public GradientStopCollection();
Public Sub New ()
Gilt für:
GradientStopCollection(IEnumerable<GradientStop>)
Initialisiert eine neue Instanz der GradientStopCollection Klasse, die die Elemente in der angegebenen Auflistung enthält.
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))
Parameter
- collection
- IEnumerable<GradientStop>
Die zu kopierende Sammlung.
Ausnahmen
collection ist null.
Gilt für:
GradientStopCollection(Int32)
Initialisiert eine neue Instanz der GradientStopCollection Klasse, die anfänglich in der Lage ist, die angegebene Anzahl von Elementen zu speichern.
public:
GradientStopCollection(int capacity);
public GradientStopCollection(int capacity);
new System.Windows.Media.GradientStopCollection : int -> System.Windows.Media.GradientStopCollection
Public Sub New (capacity As Integer)
Parameter
- capacity
- Int32
Die Anzahl der GradientStop Objekte, die die Auflistung anfänglich speichern kann.