Compartilhar via


IVsWindowFrame.SetFramePos Method

Sets the position of the window.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function SetFramePos ( _
    dwSFP As VSSETFRAMEPOS, _
    ByRef rguidRelativeTo As Guid, _
    x As Integer, _
    y As Integer, _
    cx As Integer, _
    cy As Integer _
) As Integer
int SetFramePos(
    VSSETFRAMEPOS dwSFP,
    ref Guid rguidRelativeTo,
    int x,
    int y,
    int cx,
    int cy
)
int SetFramePos(
    [InAttribute] VSSETFRAMEPOS dwSFP, 
    [InAttribute] Guid% rguidRelativeTo, 
    [InAttribute] int x, 
    [InAttribute] int y, 
    [InAttribute] int cx, 
    [InAttribute] int cy
)
abstract SetFramePos : 
        dwSFP:VSSETFRAMEPOS * 
        rguidRelativeTo:Guid byref * 
        x:int * 
        y:int * 
        cx:int * 
        cy:int -> int
function SetFramePos(
    dwSFP : VSSETFRAMEPOS, 
    rguidRelativeTo : Guid, 
    x : int, 
    y : int, 
    cx : int, 
    cy : int
) : int

Parameters

  • rguidRelativeTo
    Type: Guid%

    [in] Not used (set to nulla null reference (Nothing in Visual Basic)).

  • x
    Type: Int32

    [in] Absolute x ordinate.

  • y
    Type: Int32

    [in] Absolute y ordinate.

  • cx
    Type: Int32

    [in] x ordinate relative to x.

  • cy
    Type: Int32

    [in] y ordinate relative to y.

Return Value

Type: Int32
If the method succeeds, it returns. S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsWindowFrame::SetFramePos(
   [in] VSSETFRAMEPOS dwSFP,
   [in] REFGUID rguidRelativeTo,
   [in] int x,
   [in] int y,
   [in] int cx,
   [in] int cy
);

.NET Framework Security

See Also

Reference

IVsWindowFrame Interface

Microsoft.VisualStudio.Shell.Interop Namespace