3 writes to _nativeFont
System.Drawing.Common (3)
System\Drawing\Font.cs (3)
193
_nativeFont
= null;
347
_nativeFont
= font;
480
_nativeFont
= nativeFont;
13 references to _nativeFont
System.Drawing.Common (13)
System\Drawing\Font.cs (13)
32
nint IPointer<GpFont>.Pointer => (nint)
_nativeFont
;
137
internal GpFont* NativeFont =>
_nativeFont
;
176
if (
_nativeFont
is not null)
183
PInvokeGdiPlus.GdipDeleteFont(
_nativeFont
);
338
Debug.Assert(
_nativeFont
is null, "nativeFont already initialized, this will generate a handle leak.");
477
Debug.Assert(
_nativeFont
is null, "GDI+ native font already initialized, this will generate a handle leak");
485
PInvokeGdiPlus.GdipGetFontUnit(
_nativeFont
, (Unit*)&unit).ThrowIfFailed();
486
PInvokeGdiPlus.GdipGetFontSize(
_nativeFont
, &size).ThrowIfFailed();
487
PInvokeGdiPlus.GdipGetFontStyle(
_nativeFont
, (int*)&style).ThrowIfFailed();
488
PInvokeGdiPlus.GdipGetFamily(
_nativeFont
, &family).ThrowIfFailed();
533
if (
_nativeFont
is null)
540
status = PInvokeGdiPlus.GdipGetFontSize(
_nativeFont
, &size);
678
PInvokeGdiPlus.GdipCloneFont(
_nativeFont
, &font).ThrowIfFailed();