6 instantiations of LOGFONTW
System.Windows.Forms (1)
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
89LOGFONTW logFont = new()
System.Windows.Forms.Primitives.Tests (5)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (5)
1178LOGFONTW logfont = new() 1223LOGFONTW logfont = new() { lfWeight = (int)fontWeight }; 1240LOGFONTW logfont = new() { lfItalic = ifItalic }; 1252LOGFONTW logfont = new() { lfStrikeOut = ifStrikeOut }; 1263LOGFONTW logfont = new() { lfUnderline = ifUnderline };
56 references to LOGFONTW
System.Windows.Forms (10)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
60public override LOGFONTW Logfont => _owningControl.TryGetTarget(out Control? target) ? target.Font.ToLogicalFont() : default;
System\Windows\Forms\ActiveX\AxHost.cs (1)
3610LOGFONTW logfont = font.ToLogicalFont();
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
33LOGFONTW logFont = font.ToLogicalFont();
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
125LOGFONTW logfont = source.ToLogicalFont();
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
91public override LOGFONTW Logfont
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2757LOGFONTW logFont = value.ToLogicalFont();
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
263public override LOGFONTW Logfont
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
384LOGFONTW logFont = Font.ToLogicalFont(graphics); 425UpdateFont(ref Unsafe.As<LOGFONTW, LOGFONT>(ref logFont));
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
89LOGFONTW logFont = new()
System.Windows.Forms.Primitives (14)
System\Drawing\FontExtensions.cs (4)
11public static LOGFONTW ToLogicalFont(this Font font) 14return Unsafe.As<LOGFONT, LOGFONTW>(ref logFont); 17public static LOGFONTW ToLogicalFont(this Font font, Graphics graphics) 20return Unsafe.As<LOGFONT, LOGFONTW>(ref logFont);
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
47public abstract LOGFONTW Logfont { get; }
System\Windows\Forms\Automation\UiaTextRange.cs (6)
881private static string GetFontName(LOGFONTW logfont) => logfont.FaceName.ToString(); 883private static double GetFontSize(LOGFONTW logfont) 892private static int GetFontWeight(LOGFONTW logfont) => logfont.lfWeight; 903private static bool GetItalic(LOGFONTW logfont) => logfont.lfItalic != 0; 907private static int GetStrikethroughStyle(LOGFONTW logfont) 910private static int GetUnderlineStyle(LOGFONTW logfont)
Windows\Win32\PInvoke.GetThemeFont.cs (2)
10/// <inheritdoc cref="GetThemeFont(HTHEME, HDC, int, int, int, LOGFONTW*)"/> 16HRESULT result = GetThemeFont(hTheme.Handle, hdc, iPartId, iStateId, iPropId, (LOGFONTW*)p);
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (1)
75public unsafe LOGFONTW* lpLogFont;
System.Windows.Forms.Primitives.Tests (14)
Interop\User32\LOGFONTWTests.cs (3)
11Assert.Equal(92, sizeof(LOGFONTW)); 17LOGFONTW logFont = default; 36LOGFONTW logFont = default;
System\Windows\Forms\Automation\TestAccessors.UiaTextRangeTestAccessor.cs (6)
34public double GetFontSize(LOGFONTW logfont) => Dynamic.GetFontSize(logfont); 51public string GetFontName(LOGFONTW logfont) => s_static.GetFontName(logfont); 55public FW GetFontWeight(LOGFONTW logfont) => (FW)s_static.GetFontWeight(logfont); 59public bool GetItalic(LOGFONTW logfont) => s_static.GetItalic(logfont); 61public TextDecorationLineStyle GetStrikethroughStyle(LOGFONTW logfont) => (TextDecorationLineStyle)s_static.GetStrikethroughStyle(logfont); 63public TextDecorationLineStyle GetUnderlineStyle(LOGFONTW logfont) => (TextDecorationLineStyle)s_static.GetUnderlineStyle(logfont);
System\Windows\Forms\Automation\UiaTextRangeTests.cs (5)
1178LOGFONTW logfont = new() 1223LOGFONTW logfont = new() { lfWeight = (int)fontWeight }; 1240LOGFONTW logfont = new() { lfItalic = ifItalic }; 1252LOGFONTW logfont = new() { lfStrikeOut = ifStrikeOut }; 1263LOGFONTW logfont = new() { lfUnderline = ifUnderline };
System.Windows.Forms.Primitives.TestUtilities (4)
DeviceContextState.cs (4)
44PInvokeCore.GetObject(hfont, out LOGFONTW logfont); 63public LOGFONTW SelectedFont { get => _currentState.SelectedFont; set => _currentState.SelectedFont = value; } 80public LOGFONTW SelectedFont { get; set; } 154PInvokeCore.GetObject(hgdiobj, out LOGFONTW logfont);
System.Windows.Forms.Tests (14)
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (5)
394LOGFONTW expected = comboBox.Font.ToLogicalFont(); 395LOGFONTW actual = provider.Logfont; 412LOGFONTW expected = default; 414LOGFONTW actual = provider.Logfont; 1084LOGFONTW logFont = provider.Logfont;
System\Windows\Forms\FontDialogTests.cs (4)
700LOGFONTW* pLogfont = (LOGFONTW*)m.LParam; 701object lf = default(LOGFONTW); 703*pLogfont = (LOGFONTW)lf;
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (5)
367LOGFONTW expected = textBoxBase.Font.ToLogicalFont(); 368LOGFONTW actual = provider.Logfont; 381LOGFONTW expected = default; 382LOGFONTW actual = provider.Logfont; 927LOGFONTW logFont = provider.Logfont;