Back to Devexpress

ButtonPanelOptions.ButtonSize Property

windowsforms-devexpress-dot-xtramap-dot-buttonpaneloptions.md

latest1.9 KB
Original Source

ButtonPanelOptions.ButtonSize Property

Gets or sets the size of the Measurements toolbar and Map Editor buttons.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

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

Property Value

TypeDescription
Size

The button size.

|

Remarks

The following code specifies the size of the Measurements toolbar buttons:

csharp
mapControl1.MeasureEditor.ToolbarOptions.ButtonSize = new Size(30, 30);
vb
mapControl1.Measurements.ToolbarOptions.ButtonSize = New Size(30, 30)

The sample below sets the Map Editor button size to 30 pixels:

csharp
mapControl1.MapEditor.PanelOptions.ButtonSize = new Size(30, 30);
vb
mapControl1.MapEditor.PanelOptions.ButtonSize = New Size(30, 30)

See Also

ButtonPanelOptions Class

ButtonPanelOptions Members

DevExpress.XtraMap Namespace