TabPageFontName Property
Applies To
TabControl
Description
The TabPageFontName property allows you to get and set the font name of the text in the TabControl's tab page.
Usage
GGet Form.Control.TabPageFontName(index), var
GSet Form.Control.TabPageFontName(index), value
- Form
- Name of a form or string variable containing a form name.
- Control
- Name of a control or string variable containing a control name.
- Index
- An index of the Tab control.
- var
- String variable that will contain the value of the property.
- value
- String expression for the new value of the property.
Values
A string containing the name of the font.
Default: Microsoft Sans Serif
See Also
TabControl, TabPageFontSize, TabPageFontItalic, TabPageFontBold
Example
'Get the font name for the tab page text of index number 2 that is currently set
GGet frmMain.tabControl1.TabPageFontName(2), fontName
'Set the font name for the tab page text of index number 0 as "Courier New".
GSet frmMain.tabControl1.TabPageFontName(0), "Courier New"