TextWrap (Property)

Applies To:

Column object, Legend object

Description:

Enables text in a column to wrap and extend to the height of the column, or legend provided sufficient vertical space is available.

Action:

Read-write, Boolean

Example:

This example shows how to force text to wrap on specific columns within the Results section:

var Col1 = "State"
var Col2 = "City"
ActiveDocument.Sections["Results"].Columns[Col1].TextWrap = false
ActiveDocument.Sections["Results"].Columns[Col2]. TextWrap = true

Example:

This example shows to force text to wrap in a chart legend:

ActiveDocument.Sections["BooksChart"].Legend.TextWrap = false