Visual Basic: MSTab Control

WordWrap Property (SSTab Control)

See Also   Example   Applies To

Returns or sets a value indicating whether the text on each tab is wrapped to the next line if it is too long to fit horizontally on the tab on an SSTab control.

Syntax

object.WordWrap [ **=**boolean ]

The WordWrap property syntax has these parts:

Part Description
object An object expression that evaluates to an SSTab control.
boolean A Boolean expression that specifies whether the text on each tab will wrap to the next line if it does not fit horizontally, as described in Settings.

Settings

The settings for boolean are:

Setting Description
True The text wraps if it is too long to fit within the width of each tab.
False (Default) The text doesn't wrap and will be truncated if it is too long.

Remarks

Use the WordWrap property to determine how an SSTab control displays the text on each tab. For example, a tabbed dialog that changes dynamically might have text that also changes. To make sure that text will not be truncated if it is too long, set the WordWrap property to True, the TabMaxWidth property to 0, and the TabHeight property to a height that allows you to view the longest piece of text.