Share via


TextRange2.TrimText Method

Returns the specified text minus any trailing spaces.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function TrimText As TextRange2
'Usage
Dim instance As TextRange2
Dim returnValue As TextRange2

returnValue = instance.TrimText()
TextRange2 TrimText()

Return Value

Type: Microsoft.Office.Core.TextRange2
TextRange2

See Also

Reference

TextRange2 Interface

TextRange2 Members

Microsoft.Office.Core Namespace