| Visual Basic (Declaration) | |
|---|---|
Public Property SizeMode As SizeMode | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WebTab Dim value As SizeMode instance.SizeMode = value value = instance.SizeMode | |
| C# | |
|---|---|
public SizeMode SizeMode {get; set;} | |
Using this property you can make a selection in arranging the layout of the WebTab to use either Default, Automatic, Fixed, or Justify.
- Automatic.
This is the default value for the SizeMode. The automatic sizing mode is the most recommended configuration which allowing you to enter any length of characters in the tab header's text. The TabHeader will shrink and expand automatically depend on the size of the text. - Fixed
This sizing mode is suitable when you want all tab headers to have same width. When using this mode, if the size of the text exceeds the width of the tab header, the text will be wrapped automatically. To prevent text wrapping, set AllowTextWrapping to False. When AllowTextWrapping is set to False, the overflowed text will be truncated and shown as ellipsis. - Justify
The Justified sizing mode will automatically adjust tab header's width of all headers to fit the width of the tab control. This mode is suitable when you have fixed width of tab control with a lot of tab items and in the case where empty gaps are not preferred.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2