Muokkaa

Jaa


TableView.MultiLineWidth property (Outlook)

Returns or sets a Long value that represents the text width (in characters) needed to trigger multiline mode in the TableView object . Read/write

Syntax

expression. MultiLineWidth

expression A variable that represents a TableView object.

Remarks

This property can be set to a value between 1 and 999. If this property is set to a value less than 1, the property is set to 1. If this property is set to a value greater than 999, the property is set to 999. The default value for this property is 100.

This property only applies if the Multiline property of the TableView object is set to olWidthMultiLine. The value of this property determines the point at which the TableView object displays text for an Outlook item in multiline mode.

Example

The following Visual Basic for Applications (VBA) example configures the current TableView object so that, if text in the view is longer than 50 characters, the text is displayed in multiline mode. The MultiLine property cannot be set to olWidthMultiLine unless the AutomaticColumnSizing property is set to True.

Private Sub ConfigureMultiLineView() 
 
 Dim objTableView As TableView 
 
 
 
 If Application.ActiveExplorer.CurrentView.ViewType = _ 
 
 olTableView Then 
 
 
 
 ' Obtain a TableView object reference for the 
 
 ' current table view. 
 
 Set objTableView = _ 
 
 Application.ActiveExplorer.CurrentView 
 
 
 
 With objTableView 
 
 ' Set the TableView object so that, 
 
 ' if the text in the view is longer 
 
 ' than 50 characters, the text is 
 
 ' displayed in multiline mode. 
 
 .AutomaticColumnSizing = True 
 
 .MultiLine = olWidthMultiLine 
 
 .MultiLineWidth = 50 
 
 
 
 ' Save the table view. 
 
 .Save 
 
 End With 
 
 End If 
 
End Sub

See also

TableView Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.