ThumbnailCollectionReplace 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
)
Public Sub Replace (
index As Integer,
newItem As Thumbnail,
disposeReplacedItem As Boolean
)
Parameters
- index
- Type: SystemInt32
The index of the thumbnail to replace. - newItem
- Type: Atalasoft.Imaging.WinControlsThumbnail
The thumbnail to use at this index. - disposeReplacedItem
- Type: SystemBoolean
Indicates whether the previous thumbnail should be disposed.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | Thrown if the index is invalid for this collection. |
ArgumentNullException | Thrown if the newItem parameter is null. |
See Also