Back to Devexpress

ToolboxOptionsView.ItemImageSize Property

windowsforms-devexpress-dot-xtratoolbox-dot-toolboxoptionsview-aa88e936.md

latest2.3 KB
Original Source

ToolboxOptionsView.ItemImageSize Property

Gets or sets the dimensions of the rectangle for the item icons.

Namespace : DevExpress.XtraToolbox

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public Size ItemImageSize { get; set; }
vb
Public Property ItemImageSize As Size

Property Value

TypeDescription
Size

A System.Drawing.Size structure that specifies the dimensions of the rectangle for the item icons.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ItemImageSize
ToolboxControl

.OptionsView .ItemImageSize

|

Remarks

You can provide an icon for the toolbox items using the ToolboxElementBase.ImageOptions property. By default, the toolbox items display the icons as they are, respecting their dimensions. The ItemImageSize property allows you to explicitly specify the dimensions of the rectangle for the item icons. If the specified rectangle is less then the actual icon dimension, the icon is proportionally narrowed to fit the rectangle.

See Also

OptionsView

ImageOptions

ItemViewMode

ImageToTextDistance

ToolboxOptionsView Class

ToolboxOptionsView Members

DevExpress.XtraToolbox Namespace