61 references to PICTYPE
System.Private.Windows.Core (13)
Windows.Win32.IPicture.g.cs (8)
145 /// <inheritdoc cref="get_Type(winmdroot.System.Ole.PICTYPE*)"/> 146 internal unsafe winmdroot.Foundation.HRESULT get_Type(out winmdroot.System.Ole.PICTYPE pType) 148 fixed (winmdroot.System.Ole.PICTYPE* pTypeLocal = &pType) 158 private static winmdroot.Foundation.HRESULT get_Type(IPicture* pThis, winmdroot.System.Ole.PICTYPE* pType) 184 public unsafe winmdroot.Foundation.HRESULT get_Type(winmdroot.System.Ole.PICTYPE* pType) 186 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.PICTYPE* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPicture*)Unsafe.AsPointer(ref this), pType); 679 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.PICTYPE* ,winmdroot.Foundation.HRESULT> get_Type_6; 747 unsafe winmdroot.Foundation.HRESULT get_Type(winmdroot.System.Ole.PICTYPE* pType);
Windows.Win32.PICTDESC.g.cs (2)
36 internal PICTYPE picType 38 get => (PICTYPE)this._picType;
Windows.Win32.System_Ole_IPicture_Extensions.g.cs (3)
43 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.get_Type(winmdroot.System.Ole.PICTYPE*)"/> 44 internal static unsafe winmdroot.Foundation.HRESULT get_Type(this winmdroot.System.Ole.IPicture.Interface @this, out winmdroot.System.Ole.PICTYPE pType) 46 fixed (winmdroot.System.Ole.PICTYPE* pTypeLocal = &pType)
System.Private.Windows.GdiPlus (3)
System\Drawing\IIconExtensions.cs (1)
16picType = PICTYPE.PICTYPE_ICON
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (1)
58picType = PICTYPE.PICTYPE_BITMAP
Windows\Win32\Graphics\GdiPlus\GpMetafileExtensions.cs (1)
25picType = PICTYPE.PICTYPE_ENHMETAFILE
System.Windows.Forms (5)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
61picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 65case PICTYPE.PICTYPE_ICON: 69case PICTYPE.PICTYPE_BITMAP:
System\Windows\Forms\Input\Cursor.cs (2)
413picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 415if (type == PICTYPE.PICTYPE_ICON)
System.Windows.Forms.Primitives (12)
System\Drawing\ImageExtensions.cs (12)
19PICTYPE type, 26case PICTYPE.PICTYPE_ICON: 28case PICTYPE.PICTYPE_METAFILE: 40case PICTYPE.PICTYPE_ENHMETAFILE: 46case PICTYPE.PICTYPE_BITMAP: 48case PICTYPE.PICTYPE_NONE: 51case PICTYPE.PICTYPE_UNINITIALIZED: 66PICTYPE type = (PICTYPE)variant.data.iVal; 67if (type == PICTYPE.PICTYPE_BITMAP) 89picture->get_Type(out PICTYPE type).ThrowOnFailure(); 90if (type == PICTYPE.PICTYPE_BITMAP)
System.Windows.Forms.Primitives.Tests (6)
Interop\Ole32\IPictureTests.cs (6)
23picture.Value->get_Type(out PICTYPE type); 24Assert.Equal(PICTYPE.PICTYPE_ICON, type); 40picture.Value->get_Type(out PICTYPE type); 41Assert.Equal(PICTYPE.PICTYPE_BITMAP, type); 60Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)variant.data.iVal);
System.Windows.Forms.Tests (22)
System\Windows\Forms\AxHostTests.cs (6)
1590iPicture.get_Type(out PICTYPE type).ThrowOnFailure(); 1598Assert.Equal(PICTYPE.PICTYPE_ICON, type); 1676iPicture.get_Type(out PICTYPE type).ThrowOnFailure(); 1684Assert.Equal(PICTYPE.PICTYPE_BITMAP, type); 1704iPicture.get_Type(out PICTYPE type).ThrowOnFailure(); 1712Assert.Equal(PICTYPE.PICTYPE_ENHMETAFILE, type);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (12)
35private readonly PICTYPE _type; 37public TestIPicture(nint handle, PICTYPE type = PICTYPE.PICTYPE_NONE) 54public override unsafe HRESULT get_Type(PICTYPE* pType) 79TestIPicture iconIPicture = new(handle, PICTYPE.PICTYPE_ICON); 98TestIPicture bitmapIPicture = new(hBitmap, PICTYPE.PICTYPE_BITMAP); 123using var unknown = ComHelpers.GetComScope<IUnknown>(new TestIPicture(1, PICTYPE.PICTYPE_METAFILE)); 148picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 149Assert.Equal(PICTYPE.PICTYPE_ICON, type); 169picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 170Assert.Equal(PICTYPE.PICTYPE_BITMAP, type); 194public virtual HRESULT get_Type(PICTYPE* pType) => HRESULT.S_OK;
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (4)
76Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)typeProperty.GetValue(iPictureDisp)); 89Assert.Equal(PICTYPE.PICTYPE_BITMAP, (PICTYPE)(short)properties["Type"].GetValue(iPicture));