Range.InStory Method
Determines if the selection or range to which this method is applied is in the same story as the range specified by the Range argument.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function InStory ( _
Range As Range _
) As Boolean
'Usage
Dim instance As Range
Dim Range As Range
Dim returnValue As Boolean
returnValue = instance.InStory(Range)
bool InStory(
Range Range
)
Parameters
- Range
Type: Microsoft.Office.Interop.Word.Range
Required Range object. The Range object whose story is compared with the story that contains expression.
Return Value
Type: System.Boolean
Remarks
This method returns True if the selection or range to which this method is applied is in the same story as the range specified by the Range argument, and False if not.