TextSelection.GotoLine(Int32, Boolean) Yöntem

Tanım

Belirtilen satırın başlangıcına gider ve istenirse satırı seçer.

void GotoLine(int Line, bool Select = false);
[System.Runtime.InteropServices.DispId(32)]
public void GotoLine (int Line, bool Select = false);
[<System.Runtime.InteropServices.DispId(32)>]
abstract member GotoLine : int * bool -> unit
Public Sub GotoLine (Line As Integer, Optional Select As Boolean = false)

Parametreler

Line
Int32

Gereklidir. Gidilecek satır numarası, başlangıcı.

Select
Boolean

İsteğe bağlı. Hedef satırın seçili olup olmayacağını gösterir. Varsayılan değer: false.

Öznitelikler

Örnekler

Sub GotoLineExample()  
   ' Before running this example, open a text document.  
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection  
   ' Go to first line in document and select it.  
   objSel.GotoLine(1, True)  
End Sub  

Açıklamalar

GotoLine , ile aynı etkiye sahiptir TextSelection.MoveToLineAndOffset(Line, 0, False) . İse Select true , ve GotoLine de gerçekleştirir EndOfLine(True) .

Şunlara uygulanır