ToolImageMargins Property

Gets or sets the Marginsfor an image.

Definition

Namespace: BeeMobile.ToolBar
Assembly: BeeMobile.ToolBar.NET48 (in BeeMobile.ToolBar.NET48.dll) Version: 4.8.3.5
C#
public Margins ImageMargins { get; set; }

Property Value

Margins

Remarks

When the image is drawn inside the Tool a rectangle designated for that image is first computed. Setting the Margins allows you to specify where the image should be placed within the Tool.

The rectangle which is designated for a Tool is computed so:

If the Orientation is horizontal, then the size of one Tool is: Width = width of ToolBar divided by ToolsPerPage Height = height of ToolBar If the Orientation is vertical, the size of one Tool is: Width = width of ToolBar Height = height of ToolBar divided by ToolsPerPage

Then Margins specify additional distance of an image in its rectangle.

If the Margins overlap (left margin gets behind the right one OR top margin gets below the bottom one) then no image will be drawn.

See Also