Modifica

Condividi tramite


Selection.GoToNext(WdGoToItem) Method

Definition

Returns a Range object that refers to the start position of the next item or location specified by the What argument.

public:
 Microsoft::Office::Interop::Word::Range ^ GoToNext(Microsoft::Office::Interop::Word::WdGoToItem What);
public Microsoft.Office.Interop.Word.Range GoToNext (Microsoft.Office.Interop.Word.WdGoToItem What);
abstract member GoToNext : Microsoft.Office.Interop.Word.WdGoToItem -> Microsoft.Office.Interop.Word.Range
Public Function GoToNext (What As WdGoToItem) As Range

Parameters

What
WdGoToItem

Required WdGoToItem.

Returns

Remarks

The GoToNext method moves the selection to the specified item (except for the wdGoToGrammaticalError, wdGoToProofreadingError, and wdGoToSpellingError constants).

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.

Applies to