共用方式為


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
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

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace