Share via


Range.Text Property

Returns or sets the text in the specified range.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Default Property Text As String
    Get
    Set
'Usage
Dim instance As Range
Dim value As String

value = instance

instance = value
string this { get; set; }

Property Value

Type: System.String

Remarks

The Text property returns the plain, unformatted text of the selection or range. When you set this property, the text of the range or selection is replaced.

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Word Namespace