3 instantiations of CY
System.Private.Windows.Core (2)
Windows\Win32\System\Com\CY.cs (2)
18public static explicit operator CY(decimal value) => new() { int64 = decimal.ToOACurrency(value) }; 21public static explicit operator CY(float value) => new() { int64 = (long)(value * 10000) };
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
740Anonymous = new() { cyVal = new() { int64 = value } }
34 references to CY
System.Private.Windows.Core (18)
Windows.Win32.CACY.g.cs (1)
27 internal unsafe winmdroot.System.Com.CY* pElems;
Windows.Win32.PROPVARIANT.g.cs (2)
107 internal winmdroot.System.Com.CY cyVal; 260 internal unsafe winmdroot.System.Com.CY* pcyVal;
Windows.Win32.VARIANT.g.cs (2)
86 internal winmdroot.System.Com.CY cyVal; 131 internal unsafe winmdroot.System.Com.CY* pcyVal;
Windows\Win32\System\Com\CY.cs (11)
6internal partial struct CY : IEquatable<CY> 8public readonly bool Equals(CY other) => int64 == other.int64; 9public override readonly bool Equals(object? obj) => obj is CY cy && Equals(cy); 12public static bool operator ==(CY left, CY right) => left.Equals(right); 13public static bool operator !=(CY left, CY right) => !left.Equals(right); 17public static explicit operator decimal(CY value) => decimal.FromOACurrency(value.int64); 18public static explicit operator CY(decimal value) => new() { int64 = decimal.ToOACurrency(value) }; 20public static explicit operator float(CY value) => (float)(value.int64 / 10000f); 21public static explicit operator CY(float value) => new() { int64 = (long)(value * 10000) };
Windows\Win32\System\Variant\VARIANT.cs (2)
938public static explicit operator CY(VARIANT value) 939=> value.vt == VT_CY ? value.data.cyVal : ThrowInvalidCast<CY>();
System.Windows.Forms (4)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3614cySize = (CY)font.SizeInPoints, 3797(float)(CY)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_SIZE),
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
41cySize = (CY)font.SizeInPoints,
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
121target->Size = (CY)source.SizeInPoints;
System.Windows.Forms.Primitives (10)
Windows.Win32.FONTDESC.g.cs (1)
39 internal winmdroot.System.Com.CY cySize;
Windows.Win32.IFont.g.cs (9)
122 private static winmdroot.Foundation.HRESULT get_Size(IFont* pThis, winmdroot.System.Com.CY* pSize) 148 internal winmdroot.System.Com.CY Size 152 winmdroot.System.Com.CY __result; 153 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IFont*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); 158 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IFont*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); 165 private static winmdroot.Foundation.HRESULT put_Size(IFont* pThis, winmdroot.System.Com.CY size) 895 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY* ,winmdroot.Foundation.HRESULT> get_Size_6; 897 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.System.Com.CY ,winmdroot.Foundation.HRESULT> put_Size_7; 992 winmdroot.System.Com.CY Size
System.Windows.Forms.Tests (2)
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
33cySize = (CY)12.0f 65cySize = (CY)12.0f