ITextView.ViewportTop Property
Gets the position of the top edge of the viewpoint in the text rendering coordinate system.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
声明
ReadOnly Property ViewportTop As Double
Get
double ViewportTop { get; }
property double ViewportTop {
double get ();
}
abstract ViewportTop : float
function get ViewportTop () : double
Property Value
Type: System.Double
The top edge of the viewport.
Remarks
This property is read-only and always returns 0.0. Scrolling the text is done by changing the set of formatted lines and/or the vertical offset of those lines.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.