TabPageTitleMargins Property

Gets or sets the size of text margins.

Definition

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

Property Value

Margins

Remarks

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

The rectangle which is designated for a TabPage button is computed so:

The size of one TabPage button is: Width = width of TabControl divided by TabsPerPage Height = height of TabBarHeight

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