Bagikan melalui


IVsWindowFrame.SetFramePos Method

Definition

Sets the position of the window.

public:
 int SetFramePos(Microsoft::VisualStudio::Shell::Interop::VSSETFRAMEPOS dwSFP, Guid % rguidRelativeTo, int x, int y, int cx, int cy);
public int SetFramePos (Microsoft.VisualStudio.Shell.Interop.VSSETFRAMEPOS dwSFP, ref Guid rguidRelativeTo, int x, int y, int cx, int cy);
abstract member SetFramePos : Microsoft.VisualStudio.Shell.Interop.VSSETFRAMEPOS * Guid * int * int * int * int -> int
Public Function SetFramePos (dwSFP As VSSETFRAMEPOS, ByRef rguidRelativeTo As Guid, x As Integer, y As Integer, cx As Integer, cy As Integer) As Integer

Parameters

dwSFP
VSSETFRAMEPOS

[in] Frame position whose values are taken from the VSSETFRAMEPOS enumeration.

rguidRelativeTo
Guid

[in] Not used (set to null).

x
Int32

[in] Absolute x ordinate.

y
Int32

[in] Absolute y ordinate.

cx
Int32

[in] x ordinate relative to x.

cy
Int32

[in] y ordinate relative to y.

Returns

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  
);  

Applies to