Método EditPoint2.WordRight (Int32)

Move o objeto, o número de palavras especificado para a direita.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (em EnvDTE80.dll)

Sintaxe

'Declaração
Sub WordRight ( _
    Count As Integer _
)
void WordRight(
    int Count
)
void WordRight(
    [InAttribute] int Count
)
abstract WordRight : 
        Count:int -> unit 
function WordRight(
    Count : int
)

Parâmetros

  • Count
    Tipo: System.Int32
    Opcional.Quantas palavras para mover a edição ponto à direita da posição atual no buffer.

Comentários

Se o final do documento for atingido antes de Count o ponto de palavras, permanecerá no final do documento.

Se o argumento for negativo, em seguida, WordRight executa de forma semelhante a WordLeft.

Exemplos

Sub WordRightExample()
   Dim objTextDoc As TextDocument
   Dim objEditPt As EditPoint, iCtr As Integer
        
   ' Create a new text file.
   DTE.ItemOperations.NewFile("General\Text File")
       
   ' Get a handle to the new document and create an EditPoint.
   objTextDoc = DTE.ActiveDocument.Object("TextDocument")
   objEditPt = objTextDoc.StartPoint.CreateEditPoint
        
   ' Insert ten lines of text.
   For iCtr = 1 To 10
     objeditpt.Insert("This is a test." & Chr(13))
   Next iCtr
       
   ' Replace the eighth word on the third line with a new word.
   objEditPt.StartOfDocument()
   objEditPt.LineDown(3)
   objEditPt.WordRight(3)
   objEditPt.Delete(4)
   objEditPt.Insert("raid")
End Sub

Segurança do .NET Framework

Consulte também

Referência

EditPoint2 Interface

Sobrecargas WordRight

Namespace EnvDTE80