TwoLinesInOne Property

Microsoft Word Visual Basic

WdTwoLinesInOneType can be one of these WdTwoLinesInOneType constants.
wdTwoLinesInOneCurlyBrackets
wdTwoLinesInOneNone
wdTwoLinesInOneSquareBrackets
wdTwoLinesInOneAngleBrackets
wdTwoLinesInOneNoBrackets
wdTwoLinesInOneParentheses

expression.TwoLinesInOne

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

Setting the TwoLinesInOne property to wdTwoLinesInOneNoBrackets sets two lines of text in one without enclosing the text in any characters. Setting the TwoLinesInOne property to wdTwoLinesInOneNone restores a line of combined text to two separate lines.

For more information on using Word with Asian languages, see Word features for Asian languages.

Example

This example formats the current selection as two lines of text in one, enclosed in parentheses.

Selection.Range.TwoLinesInOne = _
    wdTwoLinesInOneParentheses