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)

double ViewportWidth { get; }

Property Value

Type: Double
The width of the viewport.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft