Compartir a través de


ITextCaret.Top Property

Gets the position of the top edge of the caret in the text rendering coordinate system.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaración
ReadOnly Property Top As Double
double Top { get; }
property double Top {
    double get ();
}
abstract Top : float
function get Top () : double

Property Value

Type: System.Double
The top edge position.

Exceptions

Exception Condition
InvalidOperationException

The caret does not lie in the text formatted by the view.

.NET Framework Security

See Also

Reference

ITextCaret Interface

Microsoft.VisualStudio.Text.Editor Namespace