다음을 통해 공유


EditPoint2.EndOfLine 메서드

편집 지점을 버퍼의 현재 줄 끝으로 이동합니다.

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

구문

‘선언
Sub EndOfLine
void EndOfLine()
void EndOfLine()
abstract EndOfLine : unit -> unit
function EndOfLine()

예제

Sub EndOfLineExample()
   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
       
   objEditPt.EndOfLine()
End Sub

.NET Framework 보안

참고 항목

참조

EditPoint2 인터페이스

EnvDTE80 네임스페이스