EditPoint2.WordRight 메서드 (Int32)

개체를 지정된 단어 수만큼 오른쪽으로 이동합니다.

네임스페이스:  EnvDTE80
어셈블리:  EnvDTE80(EnvDTE80.dll)

구문

‘선언
Sub WordRight ( _
    Count As Integer _
)
void WordRight(
    int Count
)
void WordRight(
    [InAttribute] int Count
)
abstract WordRight : 
        Count:int -> unit 
function WordRight(
    Count : int
)

매개 변수

  • Count
    형식: System.Int32
    선택적 요소.편집 지점을 버퍼의 현재 위치에서 오른쪽으로 몇 단어 이동할 것인지 지정합니다.

설명

지정한 Count 단어 수만큼 이동하던 중 문서의 끝에 도달하면 편집 지점은 문서의 끝에 머무릅니다.

인수가 음수이면 WordRightWordLeft와 비슷하게 수행됩니다.

예제

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

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

EditPoint2 인터페이스

WordRight 오버로드

EnvDTE80 네임스페이스