Partager via


ViewState Constructor (ITextView, Double, Double)

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

'Déclaration
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

  • effectiveViewportWidth
    Type: System.Double
    The width of the viewport.
  • effectiveViewportHeight
    Type: System.Double
    The height of the viewport.

.NET Framework Security

See Also

Reference

ViewState Class

ViewState Overload

Microsoft.VisualStudio.Text.Editor Namespace