Skip to main content

ToolbarDropDownItemPicker.ItemWidth Property

Gets or sets the width of items displayed within the drop-down item picker.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(0)]
public int ItemWidth { get; set; }

Property Value

Type Default Description
Int32 0

An integer value that represents the width of items.

Remarks

Use the ItemWidth property to specify the within 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