Initializes a new instance of the ViewState for the specified view, viewport width, and viewport height.
Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Public Sub New ( _
    view As ITextView, _
    effectiveViewportWidth As Double, _
    effectiveViewportHeight As Double _
)
public ViewState(
    ITextView view,
    double effectiveViewportWidth,
    double effectiveViewportHeight
)
public:
ViewState(
    ITextView^ view, 
    double effectiveViewportWidth, 
    double effectiveViewportHeight
)
new : 
        view:ITextView * 
        effectiveViewportWidth:float * 
        effectiveViewportHeight:float -> ViewState
public function ViewState(
    view : ITextView, 
    effectiveViewportWidth : double, 
    effectiveViewportHeight : double
)
Parameters
view
Type: Microsoft.VisualStudio.Text.Editor.ITextViewThe ITextView.
effectiveViewportWidth
Type: DoubleThe width of the viewport.
effectiveViewportHeight
Type: DoubleThe height of the viewport.
.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.