27 references to LOGFONT
System.Drawing.Common (16)
System\Drawing\Font.cs (12)
271
int nativeSize = sizeof(
LOGFONT
);
283
ToLogFont(out
LOGFONT
nativeLogFont, graphics);
304
void ToLogFont(out
LOGFONT
logFont, Graphics graphics)
308
fixed (
LOGFONT
* lf = &logFont)
550
PInvokeCore.GetObject((HGDIOBJ)hfont, out
LOGFONT
logFont);
572
static Font FromLogFont(in
LOGFONT
logFont)
583
static Font FromLogFont(in
LOGFONT
logFont, IntPtr hdc)
587
fixed (
LOGFONT
* lf = &logFont)
622
if (lf is
LOGFONT
logFont)
629
int nativeSize = sizeof(
LOGFONT
);
702
public void ToLogFont(out
LOGFONT
logFont)
717
ToLogFont(out
LOGFONT
lf, graphics);
System\Drawing\SystemFonts.cs (4)
153
LOGFONT
itfont = default;
154
if (PInvokeCore.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_GETICONTITLELOGFONT, (uint)sizeof(
LOGFONT
), &itfont, 0))
268
GetFontFromData(Unsafe.As<LOGFONTW,
LOGFONT
>(ref Unsafe.AsRef(in logFont)));
270
private static Font GetFontFromData(in
LOGFONT
logFont)
System.Windows.Forms (6)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (3)
312
LOGFONT
logFont = default;
425
UpdateFont(ref Unsafe.As<LOGFONTW,
LOGFONT
>(ref logFont));
463
private void UpdateFont(ref
LOGFONT
lf)
System\Windows\Forms\SystemInformation.cs (2)
156
return Font.FromLogFont(Unsafe.AsRef<
LOGFONT
>((
LOGFONT
*)&data.lfMenuFont));
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
537
_lastHResult = PInvoke.GetThemeFont(this, hdc, Part, State, (int)prop, out
LOGFONT
logfont);
System.Windows.Forms.Primitives (5)
System\Drawing\FontExtensions.cs (4)
13
font.ToLogFont(out
LOGFONT
logFont);
14
return Unsafe.As<
LOGFONT
, LOGFONTW>(ref logFont);
19
font.ToLogFont(out
LOGFONT
logFont, graphics);
20
return Unsafe.As<
LOGFONT
, LOGFONTW>(ref logFont);
Windows\Win32\PInvoke.GetThemeFont.cs (1)
11
public static unsafe HRESULT GetThemeFont<T>(T hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, out
LOGFONT
pFont)