Aracılığıyla paylaş


EditPoint2.CreateEditPoint Yöntem

Oluşturur ve döndürür bir EditPoint nesnesini çağıran nesne konumu.

Ad alanı:  EnvDTE80
Derleme:  EnvDTE80 (EnvDTE80.dll içinde)

Sözdizimi

'Bildirim
Function CreateEditPoint As EditPoint
EditPoint CreateEditPoint()
EditPoint^ CreateEditPoint()
abstract CreateEditPoint : unit -> EditPoint
function CreateEditPoint() : EditPoint

Dönüş Değeri

Tür: EditPoint
EditPoint nesnesi

Notlar

CreateEditPointoluşturur ve yeni bir döner EditPoint nesnesini çağıran nesne ile aynı fiziksel konumda.Çağıran nesne ise bir VirtualPoint, daha sonra ortaya çıkan EditPoint aynı LineCharOffset olarak değer VirtualPoint.

Örnekler

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 Güvenliği

Ayrıca bkz.

Başvuru

EditPoint2 Arabirim

EnvDTE80 Ad Alanı

Diğer Kaynaklar

Nasıl yapılır: Otomasyon Nesne Modeli Kod Örnekleri Derleme ve Çalıştırma