IVsUIShell2.CreateGlyphImageButton Yöntemi (IntPtr, UInt16, Int32, Int32, UInt32, IVsImageButton)
Yayımlanan: Ağustos 2016
Belirtilen karakter görüntü olarak kullanarak bir karışık görüntü metin düğmesi oluşturur.
Ad alanı: Microsoft.VisualStudio.Shell.Interop
Derleme: Microsoft.VisualStudio.Shell.Interop.8.0 (Microsoft.VisualStudio.Shell.Interop.8.0.dll içinde)
Sözdizimi
int CreateGlyphImageButton(
IntPtr hwnd,
ushort chGlyph,
int xShift,
int yShift,
uint bwiPos,
out IVsImageButton ppImageButton
)
int CreateGlyphImageButton(
IntPtr hwnd,
unsigned short chGlyph,
int xShift,
int yShift,
unsigned int bwiPos,
[OutAttribute] IVsImageButton^% ppImageButton
)
abstract CreateGlyphImageButton :
hwnd:nativeint *
chGlyph:uint16 *
xShift:int *
yShift:int *
bwiPos:uint32 *
ppImageButton:IVsImageButton byref -> int
Function CreateGlyphImageButton (
hwnd As IntPtr,
chGlyph As UShort,
xShift As Integer,
yShift As Integer,
bwiPos As UInteger,
<OutAttribute> ByRef ppImageButton As IVsImageButton
) As Integer
Parametreler
hwnd
Type: System.IntPtr[in] İşleme olan pencereyi oluşturulan düğme sahibi. Şu anda Visual Studio Bu değer yok sayar.
chGlyph
Type: System.UInt16[in] Kullanılacak karakteri temsil eden karakter.
xShift
Type: System.Int32[in] Glif kaydırmak için ne kadar sağda, mantıksal birimler cinsinden.
yShift
Type: System.Int32[in] Ne kadar aşağı, glif kaydırmak için mantıksal birimler cinsinden.
bwiPos
Type: System.UInt32[in] Arasında bir değer __BWI_IMAGE_POS glif düğme herhangi bir metin ile ilgili nasıl konumlandırılacağını belirtme numaralandırması.
ppImageButton
Type: Microsoft.VisualStudio.Shell.Interop.IVsImageButton[out] Döndürür bir IVsImageButton Yeni düğmesini temsil eden nesne.
Dönüş Değeri
Type: System.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 imza
Vsshell80.idl:
HRESULT IVsUIShell2:: CreateGlyphImageButton(
[in] HWND hwnd,
[in] WCHAR chGlyph,
[in] int xShift,
[in] int yShift,
[in] BWI_IMAGE_POS pos,
[out] IVsImageButton** ppImageButton
);
Glif, örneğin bir pencere çerçevesi Kapat düğmesini gibi görsel bir simge temsil eden bir karakter gelen bir karakterdir.
Ayrıca bkz.
IVsUIShell2 Arabirimi
Microsoft.VisualStudio.Shell.Interop Ad alanı
Başa dön