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)
16
picType =
PICTYPE
.PICTYPE_ICON
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (1)
58
picType =
PICTYPE
.PICTYPE_BITMAP
Windows\Win32\Graphics\GdiPlus\GpMetafileExtensions.cs (1)
25
picType =
PICTYPE
.PICTYPE_ENHMETAFILE
System.Windows.Forms (5)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (3)
61
picture.Value->get_Type(out
PICTYPE
type).ThrowOnFailure();
65
case
PICTYPE
.PICTYPE_ICON:
69
case
PICTYPE
.PICTYPE_BITMAP:
System\Windows\Forms\Input\Cursor.cs (2)
413
picture.Value->get_Type(out
PICTYPE
type).ThrowOnFailure();
415
if (type ==
PICTYPE
.PICTYPE_ICON)
System.Windows.Forms.Primitives (12)
System\Drawing\ImageExtensions.cs (12)
19
PICTYPE
type,
26
case
PICTYPE
.PICTYPE_ICON:
28
case
PICTYPE
.PICTYPE_METAFILE:
40
case
PICTYPE
.PICTYPE_ENHMETAFILE:
46
case
PICTYPE
.PICTYPE_BITMAP:
48
case
PICTYPE
.PICTYPE_NONE:
51
case
PICTYPE
.PICTYPE_UNINITIALIZED:
66
PICTYPE
type = (
PICTYPE
)variant.data.iVal;
67
if (type ==
PICTYPE
.PICTYPE_BITMAP)
89
picture->get_Type(out
PICTYPE
type).ThrowOnFailure();
90
if (type ==
PICTYPE
.PICTYPE_BITMAP)
System.Windows.Forms.Primitives.Tests (6)
Interop\Ole32\IPictureTests.cs (6)
23
picture.Value->get_Type(out
PICTYPE
type);
24
Assert.Equal(
PICTYPE
.PICTYPE_ICON, type);
40
picture.Value->get_Type(out
PICTYPE
type);
41
Assert.Equal(
PICTYPE
.PICTYPE_BITMAP, type);
60
Assert.Equal(
PICTYPE
.PICTYPE_BITMAP, (
PICTYPE
)variant.data.iVal);
System.Windows.Forms.Tests (22)
System\Windows\Forms\AxHostTests.cs (6)
1590
iPicture.get_Type(out
PICTYPE
type).ThrowOnFailure();
1598
Assert.Equal(
PICTYPE
.PICTYPE_ICON, type);
1676
iPicture.get_Type(out
PICTYPE
type).ThrowOnFailure();
1684
Assert.Equal(
PICTYPE
.PICTYPE_BITMAP, type);
1704
iPicture.get_Type(out
PICTYPE
type).ThrowOnFailure();
1712
Assert.Equal(
PICTYPE
.PICTYPE_ENHMETAFILE, type);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (12)
35
private readonly
PICTYPE
_type;
37
public TestIPicture(nint handle,
PICTYPE
type =
PICTYPE
.PICTYPE_NONE)
54
public override unsafe HRESULT get_Type(
PICTYPE
* pType)
79
TestIPicture iconIPicture = new(handle,
PICTYPE
.PICTYPE_ICON);
98
TestIPicture bitmapIPicture = new(hBitmap,
PICTYPE
.PICTYPE_BITMAP);
123
using var unknown = ComHelpers.GetComScope<IUnknown>(new TestIPicture(1,
PICTYPE
.PICTYPE_METAFILE));
148
picture.Value->get_Type(out
PICTYPE
type).ThrowOnFailure();
149
Assert.Equal(
PICTYPE
.PICTYPE_ICON, type);
169
picture.Value->get_Type(out
PICTYPE
type).ThrowOnFailure();
170
Assert.Equal(
PICTYPE
.PICTYPE_BITMAP, type);
194
public virtual HRESULT get_Type(
PICTYPE
* pType) => HRESULT.S_OK;
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (4)
76
Assert.Equal(
PICTYPE
.PICTYPE_BITMAP, (
PICTYPE
)(short)typeProperty.GetValue(iPictureDisp));
89
Assert.Equal(
PICTYPE
.PICTYPE_BITMAP, (
PICTYPE
)(short)properties["Type"].GetValue(iPicture));