Questa documentazione è stata archiviata e non viene gestita.

Metodo DrawingCollection.Insert

Inserts a Drawing into this DrawingCollection at the specified index position.

Spazio dei nomi: System.Windows.Media
Assembly: PresentationCore (in presentationcore.dll)

public void Insert (
	int index,
	Drawing value
)
public final void Insert (
	int index, 
	Drawing value
)
public final function Insert (
	index : int, 
	value : Drawing
)
Non è possibile utilizzare metodi in XAML.

Parametri

index

The index position at which to insert value, the specified Drawing.

value

The item to insert.

Tipo di eccezioneCondizione

ArgumentException

value is riferimento null (Nothing in Visual Basic).

ArgumentOutOfRangeException

index is not a valid index in the DrawingCollection.

NotSupportedException

The DrawingCollection is read-only.

- or -

The DrawingCollection has a fixed size.

Unlike typical implementations of IList.Insert, this implementation throws an ArgumentException if you attempt to insert a null (Nothing) reference.

Microsoft .NET Framework 3.0 è supportato in Windows Vista, Microsoft Windows XP SP2 e Windows Server 2003 SP1.

.NET Framework

Supportato in:
Mostra: