Share via


ITextView.ViewportWidth Property

Gets the width of the visible content window (including the margin) in logical pixels.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
ReadOnly Property ViewportWidth As Double
double ViewportWidth { get; }
property double ViewportWidth {
    double get ();
}
abstract ViewportWidth : float with get
function get ViewportWidth () : double

Property Value

Type: Double
The width of the viewport.

.NET Framework Security

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace