Click or drag to resize

ThumbnailCollection.Replace Method (Int32, Thumbnail, Boolean)

Replaces one Thumbnail in the collection with another.

Namespace:  Atalasoft.Imaging.WinControls
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Replace(
	int index,
	Thumbnail newItem,
	bool disposeReplacedItem
)

Parameters

index
Type: System.Int32
The index of the thumbnail to replace.
newItem
Type: Atalasoft.Imaging.WinControls.Thumbnail
The thumbnail to use at this index.
disposeReplacedItem
Type: System.Boolean
Indicates whether the previous thumbnail should be disposed.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException Thrown if the index is invalid for this collection.
ArgumentNullException Thrown if the newItem parameter is null.
See Also