Range.GoToNext MethodÂ
Returns a Range object that refers to the start position of the next item or location specified by the What argument.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim What As WdGoToItem
Dim returnValue As Range
Dim range1 As Range
returnValue = range1.GoToNext(What)
Syntax
Function GoToNext( _
<InAttribute()> ByVal What As WdGoToItem _
) As Range
Range GoToNext(
[In] WdGoToItem What
);
public: Range^ GoToNext(
WdGoToItem^ What
);
public Range GoToNext(
/*in*/WdGoToItem What
);
function GoToNext(
What : WdGoToItem
) : Range;
Parameters
- What
Required WdGoToItem.
Remarks
When you use this method with the wdGoToGrammaticalError, wdGoToProofreadingError, or wdGoToSpellingError constant, the Range object that's returned includes any grammar error text or spelling error text.
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
Range Interface
Microsoft.Office.Interop.Word Namespace