为指定视图、视区宽度和视区高度初始化 ViewState 的新实例。
命名空间: Microsoft.VisualStudio.Text.Editor
程序集: Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)
语法
声明
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
)
参数
effectiveViewportWidth
类型:Double视区的宽度。
effectiveViewportHeight
类型:Double视区的高度。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。