3 instantiations of CY
System.Private.Windows.Core (2)
Windows\Win32\System\Com\CY.cs (2)
18
public static explicit operator CY(decimal value) =>
new
() { int64 = decimal.ToOACurrency(value) };
21
public static explicit operator CY(float value) =>
new
() { int64 = (long)(value * 10000) };
System.Windows.Forms.Primitives.Tests (1)
Interop\Oleaut32\VARIANTTests.cs (1)
740
Anonymous = new() { cyVal =
new
() { int64 = value } }
19 references to CY
System.Private.Windows.Core (13)
Windows\Win32\System\Com\CY.cs (11)
6
internal partial struct CY : IEquatable<
CY
>
8
public readonly bool Equals(
CY
other) => int64 == other.int64;
9
public override readonly bool Equals(object? obj) => obj is
CY
cy && Equals(cy);
12
public static bool operator ==(
CY
left,
CY
right) => left.Equals(right);
13
public static bool operator !=(
CY
left,
CY
right) => !left.Equals(right);
17
public static explicit operator decimal(
CY
value) => decimal.FromOACurrency(value.int64);
18
public static explicit operator
CY
(decimal value) => new() { int64 = decimal.ToOACurrency(value) };
20
public static explicit operator float(
CY
value) => (float)(value.int64 / 10000f);
21
public static explicit operator
CY
(float value) => new() { int64 = (long)(value * 10000) };
Windows\Win32\System\Variant\VARIANT.cs (2)
938
public 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)
3614
cySize = (
CY
)font.SizeInPoints,
3797
(float)(
CY
)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_SIZE),
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
41
cySize = (
CY
)font.SizeInPoints,
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
121
target->Size = (
CY
)source.SizeInPoints;
System.Windows.Forms.Tests (2)
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
33
cySize = (
CY
)12.0f
65
cySize = (
CY
)12.0f