3 writes to _nativeFont
System.Drawing.Common (3)
System\Drawing\Font.cs (3)
192
_nativeFont
= null;
346
_nativeFont
= font;
479
_nativeFont
= nativeFont;
12 references to _nativeFont
System.Drawing.Common (12)
System\Drawing\Font.cs (12)
136
internal GpFont* NativeFont =>
_nativeFont
;
175
if (
_nativeFont
is not null)
182
PInvokeGdiPlus.GdipDeleteFont(
_nativeFont
);
337
Debug.Assert(
_nativeFont
is null, "nativeFont already initialized, this will generate a handle leak.");
476
Debug.Assert(
_nativeFont
is null, "GDI+ native font already initialized, this will generate a handle leak");
484
PInvokeGdiPlus.GdipGetFontUnit(
_nativeFont
, (Unit*)&unit).ThrowIfFailed();
485
PInvokeGdiPlus.GdipGetFontSize(
_nativeFont
, &size).ThrowIfFailed();
486
PInvokeGdiPlus.GdipGetFontStyle(
_nativeFont
, (int*)&style).ThrowIfFailed();
487
PInvokeGdiPlus.GdipGetFamily(
_nativeFont
, &family).ThrowIfFailed();
532
if (
_nativeFont
is null)
539
status = PInvokeGdiPlus.GdipGetFontSize(
_nativeFont
, &size);
677
PInvokeGdiPlus.GdipCloneFont(
_nativeFont
, &font).ThrowIfFailed();