Aracılığıyla paylaş


TextPoint.Line Özellik

Nesneyi satır sayısını alır.

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

Sözdizimi

'Bildirim
ReadOnly Property Line As Integer
    Get
int Line { get; }
property int Line {
    int get ();
}
abstract Line : int
function get Line () : int

Özellik Değeri

Tür: System.Int32
Nesneyi satır sayısını gösteren bir tamsayı değeri.

Açıklamalar

Bir satır numaraları başlangıcı.

Örnekler

Sub LineExample()
   Dim objTextDoc As TextDocument
   Dim objTP As TextPoint, iCtr As Integer
   Dim msg As String

   ' 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")
   objTP = objTextDoc.StartPoint.CreateEditPoint

   ' Insert ten lines of text.
   For iCtr = 1 To 10
      objTP.Insert("This is a test." & Chr(13))
   Next iCtr

   ' Display text point location information.
   objTP.StartOfDocument()
   msg = "DisplayColumn value: " & objTP.DisplayColumn & vbCr
   msg = msg & "Line value: " & objTP.Line & vbCr
   msg = msg & "LineCharOffset value: " & objTP.LineCharOffset & vbCr
   msg = msg & "LineLength value: " & objTP.LineLength & vbCr
   MsgBox(msg)
End Sub

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

TextPoint Arabirim

EnvDTE Ad Alanı