Image Item
- 2 minutes to read
The image item is the counterpart of standard and DevExpress image containers in the Layout Control.
The image item is resized according to the loaded image‘s dimensions and you do not need to embed it into a layout item.
#Create the Layout Image Item
This item can be created at design time only. Double-click the Layout Control to invoke the customization form and follow the steps below:
Click the “Add Auxiliary Item” button and select “Add Image Item” in the context menu.
Rename the image item.
Drag the item to the Layout Tree View pane.
Close the customization form.
Use the Object Inspector to customize the image item:
Clear the CaptionOptions.Text field.
Click the Image property’s ellipsis button to invoke the Image Picker dialog.
Load an image from a file system or the Icon Library.
The layout image item’s API:
Visibility | An item’s Visible property. |
Position | An item’s Index, Visible A parent group’s Layout |
Appearance | An item’s Layout A parent group’s Layout The layout control’s Layout |
Contents | An item’s Image and Caption |
Behavior | An item’s Caption A parent group’s Locked property. |
Size | An item’s Size |
Contains commonly used customization options. | |
Hit | The layout control’s Get |