Back to Devexpress

ToolboxOptionsView.ImageToTextDistance Property

windowsforms-devexpress-dot-xtratoolbox-dot-toolboxoptionsview-76e665a3.md

latest2.7 KB
Original Source

ToolboxOptionsView.ImageToTextDistance Property

Gets or sets the amount of space, in pixels, between the image and caption of the toolbox elements (groups and items).

Namespace : DevExpress.XtraToolbox

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(5)]
public int ImageToTextDistance { get; set; }
vb
<DefaultValue(5)>
Public Property ImageToTextDistance As Integer

Property Value

TypeDefaultDescription
Int325

An integer value that specifies the amount of space, in pixels, between the image and caption of the toolbox elements.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ImageToTextDistance
ToolboxControl

.OptionsView .ImageToTextDistance

|

Remarks

The caption and image for the toolbox elements (groups and items) are specified using the ToolboxElementBase.Caption and ToolboxElementBase.ImageOptions properties, respectively. The ToolboxOptionsView.ItemViewMode property allows you to specify whether the toolbox elements display their icons, captions, or both. By default, if both are displayed, the caption and image are spaced apart from each other at a distance of 5 pixels. The ImageToTextDistance property allows you to override the default distance between the caption and image.

See Also

OptionsView

Caption

ImageOptions

ItemViewMode

ToolboxOptionsView Class

ToolboxOptionsView Members

DevExpress.XtraToolbox Namespace