Selection.InStory MethodÂ
Determines if the selection to which this method is applied is in the same story as the specified range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Range As Range
Dim returnValue As Boolean
Dim selection1 As Selection
returnValue = selection1.InStory(Range)
Syntax
Function InStory( _
<InAttribute()> ByVal Range As Range _
) As Boolean
bool InStory(
[In] Range Range
);
public: Boolean InStory(
Range^ Range
);
public boolean InStory(
/*in*/Range Range
);
function InStory(
Range : Range
) : Boolean;
Parameters
- Range
Required Range object. The Range object whose story is compared with the story that contains the specified selection.
Remarks
This method returns True if the selection to which this method is applied is in the same story as the range specified by the Range argument, and False if not.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Selection Interface
Microsoft.Office.Interop.Word Namespace