Właściwość VirtualPoint.VirtualDisplayColumn —

Pobiera kolumna wyświetlana z bieżącej pozycji.

Przestrzeń nazw:  EnvDTE
Zestaw:  EnvDTE (w EnvDTE.dll)

Składnia

'Deklaracja
ReadOnly Property VirtualDisplayColumn As Integer
int VirtualDisplayColumn { get; }
property int VirtualDisplayColumn {
    int get ();
}
abstract VirtualDisplayColumn : int with get
function get VirtualDisplayColumn () : int

Wartość właściwości

Typ: Int32
Wartość liczbową wskazującą kolumna wyświetlana z bieżącej pozycji.

Przykłady

Sub VirtualPointExample()
   ' Before running this example, open a text document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   Dim objActive As VirtualPoint = objSel.ActivePoint
   ' Collapse the selection to the beginning of the line.
   objSel.StartOfLine()
   ' objActive is "live", tied to the position of the actual selection, 
   ' so it will reflect the new position.
   Dim iCol As Long = objActive.DisplayColumn
   ' Move the selection to the end of the line.
   objSel.EndOfLine()

   MsgBox("The length of the insertion point line is " & (objActive.DisplayColumn - iCol) & " display characters.")
   MsgBox("VirtualCharOffset value: " & objActive.VirtualCharOffset & vbCr & "VirtualDisplayColumn value: " & objActive.VirtualDisplayColumn)
End Sub

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

VirtualPoint Interfejs

Przestrzeń nazw EnvDTE