GradientStopCollection.Insert(Int32, GradientStop) Metoda

Definice

Vloží na zadanou GradientStop pozici v seznamu přechodových zarážek.

public:
 virtual void Insert(int index, System::Windows::Media::GradientStop ^ value);
public void Insert(int index, System.Windows.Media.GradientStop value);
abstract member Insert : int * System.Windows.Media.GradientStop -> unit
override this.Insert : int * System.Windows.Media.GradientStop -> unit
Public Sub Insert (index As Integer, value As GradientStop)

Parametry

index
Int32

Index založený na nule, na který chcete vložit objekt.

value
GradientStop

Vložte GradientStop ho.

Implementuje

Výjimky

value je null.

index není platný index v objektu GradientStopCollection.

Je GradientStopCollection jen pro čtení.

nebo

GradientStopCollection pevnou velikost.

Poznámky

Na rozdíl od typických IList<T>.Insertimplementací , tato implementace vyvolá ArgumentException , pokud se pokusíte vložit odkaz null (Nothing).

Platí pro

Viz také