Document.Range Method
Returns a Microsoft.Office.Interop.Word.Range by using the specified starting and ending character positions.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Function Range ( _
ByRef Start As Object, _
ByRef End As Object _
) As Range
Range Range(
ref Object Start,
ref Object End
)
Parameters
Start
Type: System.Object%The starting character position.
End
Type: System.Object%The ending character position.
Return Value
Type: Microsoft.Office.Interop.Word.Range
A Microsoft.Office.Interop.Word.Range that uses the specified starting and ending character positions.
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.