ToolbarDropDownItemPicker.ItemHeight Property
Gets or sets the height of items displayed in the drop-down item picker.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | An integer value that represents the height of items. |
Remarks
Use the ItemHeight property to specify the height of items displayed in the drop-down item picker. To specify the size of an items’ images, use the properties provided at the particular item level.
var item1 = itemPicker.Items.Add("1#Rail", "", "~/Images/image1.jpg", "Rail");
var item2 = itemPicker.Items.Add("2#Train", "", "~/Images/image2.jpg", "Train");
var item3 = itemPicker.Items.Add("3#Bus", "", "~/Images/image3.jpg", "Bus");
item1.Image.Width = Unit.Pixel(10);
item1.Image.Height = Unit.Pixel(10);
item2.Image.Width = Unit.Pixel(10);
item2.Image.Height = Unit.Pixel(10);
item3.Image.Width = Unit.Pixel(10);
item3.Image.Height = Unit.Pixel(10);
See Also