TextSelection.SelectLine Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Выделяет строку, содержащую активную точку.
public:
void SelectLine();
public:
void SelectLine();
void SelectLine();
[System.Runtime.InteropServices.DispId(48)]
public void SelectLine ();
[<System.Runtime.InteropServices.DispId(48)>]
abstract member SelectLine : unit -> unit
Public Sub SelectLine ()
- Атрибуты
Примеры
Sub SelectLineExample()
' Before running this example, open a text document.
Dim objSel As TextSelection = DTE.ActiveDocument.Selection
' Advance to the next Visual Basic function beginning or end by
' searching for "Sub" with white space before and after it.
If objSel.FindPattern(":WhSub:Wh", vsFindOptions.vsFindOptionsRegularExpression) Then
' Select the entire line.
objSel.SelectLine()
End If
End Sub