TCnImageList Class

Provides methods to manage a collection of Image objects.

Namespace: CNClrLib.Component.ImageList
TComponent
  CNClrLib.Control.Base.TClrBaseComponent
    CNClrLib.Component.ImageList.TCnImageList
type
 TCnImageList = class(TClrBaseComponent)
 end;

The TCnImageList type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates and initializes a TCnImageList instance. (Overrides TClrBaseComponent.Create(TComponent).)

Destroy

Frees the resources allocated with a TCnImageList instance. (Overrides TClrBaseComponent.Destroy.)

Top
Show:
 NameDescription
ColorDepth

Gets the color depth of the image list.

DefaultClrObject

Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.)

Handle

Gets the handle of the image list object.

HandleCreated

Gets a value indicating whether the underlying Win32 handle has been created.

ImageCollection

Gets the ImageList.ImageCollection for this image list.

ImageList

Gets the .Net imageList interface.

Images

Gets the TCnImageCollection for this image list.

ImageSize

Gets or sets the size of the images in the image list.

ImageStream

Gets the ImageListStreamer associated with this image list.

TransparentColor

Gets or sets the color to treat as transparent.

Top
Show:
 NameDescription
Dispose

Releases the resources used by the Component. (Inherited from TClrBaseComponent.)

DoGetDefaultClrObject

Represents method DoGetDefaultClrObject. (Inherited from TClrBaseComponent.)

DoGetDotNetBaseComponent

Represents method DoGetDotNetBaseComponent. (Overrides TClrBaseComponent.DoGetDotNetBaseComponent.)

DoOnImageSizeChanged(TObject)

Represents method DoOnImageSizeChanged(TObject).

DoOnTransparentColorChanged(TObject)

Represents method DoOnTransparentColorChanged(TObject).

Draw(_Graphics,Integer,Integer,Integer)

Overloaded. Draws the image indicated by the given index on the specified Graphics at the specified location.

Draw(_Graphics,Integer,Integer,Integer,Integer,Integer)

Overloaded. Draws the image indicated by the given index on the specified Graphics using the specified location and size.

Draw(_Graphics,_Point,Integer)

Overloaded. Draws the image indicated by the specified index on the specified Graphics at the given location.

GetClrObject

Represents method GetClrObject. (Inherited from TClrBaseComponent.)

RegisterEventCallBack(ClrWString,Pointer)

Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.)

RegisterEventSource

Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventCallBack(ClrWString,Pointer)

Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.)

UnRegisterEventSource

Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.)

Top
Show:
 NameDescription
OnRecreateHandle

Occurs when the Handle is recreated.

Top

See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.