Click or drag to resize

IMcImagesRemove Method

Removes an image from the collection.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Sub Remove ( 
	Index As Object
)

Parameters

Index
Type: SystemObject
Remarks
The image being removed will actually be destroyed only when all references to its McImage instance have been fully released. However, once a McImage is removed from the Images collection, an Item lookup on it will fail, even if it still exists. Removing an image from the collection changes the collection index associated with all images added after the removed image. A BeforeClose event is fired before the image is removed from the collection and a Close event is fired after it is removed. The McImage.Collection property will be Nothing after an image has been removed from the collection, and the image will be destroyed when all references held on it are released. When an image is removed from the collection, all MDI windows displaying it are closed and its UndoStack is flushed. The McMeasure.UserData property for any user measurement is emptied. Any tool active on this McImage is stopped.
See Also