다음을 통해 공유


EditPoint.LineDown 메서드

편집 지점을 지정한 줄 수만큼 아래로 이동합니다.

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

구문

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

매개 변수

  • Count
    형식: Int32

    선택적 요소. 편집 지점을 이동할 줄 수 입니다. 기본값은 1입니다.

설명

지정한 줄 수 전에 문서의 끝에 도달하면 편집 지점이 문서의 끝에 머무릅니다.

Count가 음수이면 LineDown이 LineUp과 비슷하게 수행됩니다.

예제

Sub LineDownExample()
   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.StartOfDocument()
   objEditPt.LineDown(5)
End Sub

.NET Framework 보안

참고 항목

참조

EditPoint 인터페이스

EnvDTE 네임스페이스