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
'Declaration
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: 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
- 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.