EditPoint2.CharRight 메서드 (Int32)

편집 지점을 지정한 문자 수만큼 오른쪽으로 이동합니다.

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

구문

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

매개 변수

  • Count
    형식: System.Int32
    선택적 요소.오른쪽으로 이동할 문자 수입니다.기본값은 문자 하나입니다.

설명

CharRight는 편집 지점을 지정한 문자 수만큼 오른쪽으로 이동합니다.지정한 Count 문자 수만큼 이동하던 중 문서의 끝에 도달하면 편집 지점은 문서의 끝에 머무릅니다.편집 지점이 줄의 끝에 있으면 CharRight는 편집 지점을 다음 줄의 시작에 둡니다.즉, 모든 줄 바꿈 시퀀스는 단일 문자로 처리됩니다.

Count의 값이 음수이면 CharRight 메서드가 CharLeft 메서드와 동일하게 수행됩니다.

예제

Sub CharRightExample()
   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
        
   ' Change the first letter of the fourth word of the fourth line.
   objEditPt.StartOfDocument()
   objEditPt.LineDown(3)
   objEditPt.WordRight(3)
   objEditPt.CharRight(2)
   objEditPt.Charleft(2)
   objeditpt.Delete(1)
   objEditPt.Insert("p")
End Sub

.NET Framework 보안

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

참고 항목

참조

EditPoint2 인터페이스

CharRight 오버로드

EnvDTE80 네임스페이스