GradientStopCollection.Insert(Int32, GradientStop) Metoda

Definice

GradientStop Vloží hodnotu na zadanou 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, do kterého chcete objekt vložit.

value
GradientStop

Instance GradientStop, která má být vložena.

Implementuje

Výjimky

value je null.

index není platný index v souboru GradientStopCollection.

Jedná se GradientStopCollection o jen pro čtení.

-nebo- Má 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é