Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomImageProperties.OnGetGraphicClass Event

In This Article

Occurs when the graphic class of the image assigned to an image editor, which is used as the in-place editor, is being determined.

#Declaration

Delphi
property OnGetGraphicClass: TcxImageGraphicClassEvent read; write;

#Remarks

This event is fired whenever the graphic class of the graphical data which is assigned to an image editor is determined, i.e. when the Properties.GraphicClass property’s value is not set. The OnGetGraphicClass event is useful when the editor is used as an in-place editor (in a grid control, for example) and should display graphical data of various types. You can set a specific graphic class for each data record (represented by its index) and the item in this record (a column or row) for which the image editor is displayed, which are represented by the ARecordIndex and AItem parameters, correspondingly. The APastingFromClipboard parameter indicates the condition which the image is assigned to the editor for and is equal to True when the image is pasted from the clipboard, and False in all other cases. The AGraphicClass parameter specifies the graphic class assigned to the image. This can be a non-registered graphic class (not a bitmap graphic, metafile graphic, icon, JPEG compressed image data).

See Also