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)

double ViewportLeft { get; set; }

Property Value

Type: System.Double

The left edge of the viewport.

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.

Return to top
Show: