public Margins TitleMargins { get; set; }Public Property TitleMargins As Margins
Get
SetWhen 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.