次の方法で共有


ITextView.ViewportLeft Property

Gets or sets the position of the left 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

'宣言
Property ViewportLeft As Double
double ViewportLeft { get; set; }
property double ViewportLeft {
    double get ();
    void set (double value);
}
abstract ViewportLeft : float with get, set
function get ViewportLeft () : double
function set ViewportLeft (value : double)

Property Value

Type: System.Double
The left edge of the viewport.

Remarks

When set, the horizontal offset is clipped to [0.0, Max(0.0, formatted text width - viewport width)] on non word-wrapped views, and [0,0] for view in which word-wrap is enabled.

.NET Framework Security

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace