IVsWebPreview.Resize Method
Resize the preview window.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣告
Function Resize ( _
cx As Integer, _
cy As Integer _
) As Integer
'用途
Dim instance As IVsWebPreview
Dim cx As Integer
Dim cy As Integer
Dim returnValue As Integer
returnValue = instance.Resize(cx, cy)
int Resize(
int cx,
int cy
)
int Resize(
[InAttribute] int cx,
[InAttribute] int cy
)
abstract Resize :
cx:int *
cy:int -> int
function Resize(
cx : int,
cy : int
) : int
Parameters
- cx
Type: System.Int32
[in] Integer. The new horizontal length of the preview window.
- cy
Type: System.Int32
[in] Integer. The new vertical length of the preview window.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsbrowse.idl:
HRESULT IVsWebPreview::Resize(
[in]int cx, [in]int cy
);
.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.