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
- view
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView.
- effectiveViewportWidth
Type: System.Double
The width of the viewport.
- effectiveViewportHeight
Type: System.Double
The 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.