IVsWindowFrame.GetFramePos Yöntem

Tanım

Pencerenin konumunu döndürür.

public:
 int GetFramePos(cli::array <Microsoft::VisualStudio::Shell::Interop::VSSETFRAMEPOS> ^ pdwSFP, [Runtime::InteropServices::Out] Guid % pguidRelativeTo, [Runtime::InteropServices::Out] int % px, [Runtime::InteropServices::Out] int % py, [Runtime::InteropServices::Out] int % pcx, [Runtime::InteropServices::Out] int % pcy);
public int GetFramePos (Microsoft.VisualStudio.Shell.Interop.VSSETFRAMEPOS[] pdwSFP, out Guid pguidRelativeTo, out int px, out int py, out int pcx, out int pcy);
abstract member GetFramePos : Microsoft.VisualStudio.Shell.Interop.VSSETFRAMEPOS[] * Guid * int * int * int * int -> int
Public Function GetFramePos (pdwSFP As VSSETFRAMEPOS(), ByRef pguidRelativeTo As Guid, ByRef px As Integer, ByRef py As Integer, ByRef pcx As Integer, ByRef pcy As Integer) As Integer

Parametreler

pdwSFP
VSSETFRAMEPOS[]

dışı Ayarlanacak çerçeve konumuna yönelik işaretçi. Değerler VSSETFRAMEPOS numaralandırmasından alınır.

pguidRelativeTo
Guid

dışı Kullanılmıyor (olarak ayarlanır null ).

px
Int32

dışı Mutlak x Ordinat işaretçisi.

py
Int32

dışı Mutlak y Ordinat işaretçisi.

pcx
Int32

dışı Öğesine göre x Ordinat işaretçisi px .

pcy
Int32

dışı Öğesine göre y Ordinat işaretçisi py .

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsWindowFrame::GetFramePos(  
   [out] VSSETFRAMEPOS *pdwSFP,  
   [out] GUID *pguidRelativeTo,  
   [out] int *px,  
   [out] int *py,  
   [out] int *pcx,  
   [out] int *pcy  
);  

Şunlara uygulanır