Share via


TextPoint.CreateEditPoint 메서드

호출하는 개체의 위치에서 EditPoint 개체를 만들고 반환합니다.

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

구문

‘선언
Function CreateEditPoint As EditPoint
EditPoint CreateEditPoint()
EditPoint^ CreateEditPoint()
abstract CreateEditPoint : unit -> EditPoint
function CreateEditPoint() : EditPoint

반환 값

형식: EnvDTE.EditPoint
EditPoint 개체

설명

CreateEditPoint는 호출하는 개체와 같은 실제 위치에 새 EditPoint 개체를 만들고 반환합니다. 호출하는 개체가 VirtualPoint이면 결과로 생성된 EditPoint 개체의 LineCharOffset 값은 VirtualPoint의 값과 같습니다.

예제

Sub CreateEditPointExample(ByVal dte As DTE2)

    ' Before running this example, open a text document.

    ' Append "Hello!" to the active document.
    Dim textDoc As TextDocument = _
        CType(dte.ActiveDocument.Object("TextDocument"), TextDocument)
    textDoc.EndPoint.CreateEditPoint().Insert("Hello!")

End Sub
public void CreateEditPointExample(DTE2 dte)
{
    // Before running this example, open a text document.

    // Append "Hello!" to the active document.
    TextDocument textDoc = 
        (TextDocument)dte.ActiveDocument.Object("TextDocument");
    textDoc.EndPoint.CreateEditPoint().Insert("Hello!");
}

.NET Framework 보안

참고 항목

참조

TextPoint 인터페이스

EnvDTE 네임스페이스

기타 리소스

방법: 자동화 개체 모델 코드의 예제 컴파일 및 실행