Gets or sets the size of text margins.

Namespace:  BeeMobile.ToolBar
Assembly:  BeeMobile.ToolBar.CF35 (in BeeMobile.ToolBar.CF35.dll) Version: 3.5.1.9

Syntax

C#
public Margins TextMargins { get; set; }
Visual Basic (Declaration)
Public Property TextMargins As Margins
Visual C++
public:
property Margins^ TextMargins {
	Margins^ get ();
	void set (Margins^ value);
}

Remarks

When the text is drawn inside the Tool a rectangle designated for that text is first computed. Setting the Margins allows you to specify where the text 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 the Text 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