3 overrides of Logfont
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
60public override LOGFONTW Logfont => _owningControl.TryGetTarget(out Control? target) ? target.Font.ToLogicalFont() : default;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
91public override LOGFONTW Logfont
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
263public override LOGFONTW Logfont
14 references to Logfont
System.Windows.Forms.Primitives (8)
System\Windows\Forms\Automation\UiaTextRange.cs (8)
364Rectangle endlineRectangle = new(endlinePoint.X, endlinePoint.Y + 2, UiaTextProvider.EndOfLineWidth, Math.Abs(_provider.Logfont.lfHeight) + 1); 689UIA_TEXTATTRIBUTE_ID.UIA_FontNameAttributeId => GetFontName(_provider.Logfont), 690UIA_TEXTATTRIBUTE_ID.UIA_FontSizeAttributeId => GetFontSize(_provider.Logfont), 691UIA_TEXTATTRIBUTE_ID.UIA_FontWeightAttributeId => GetFontWeight(_provider.Logfont), 694UIA_TEXTATTRIBUTE_ID.UIA_IsItalicAttributeId => GetItalic(_provider.Logfont), 696UIA_TEXTATTRIBUTE_ID.UIA_StrikethroughStyleAttributeId => GetStrikethroughStyle(_provider.Logfont), 697UIA_TEXTATTRIBUTE_ID.UIA_UnderlineStyleAttributeId => GetUnderlineStyle(_provider.Logfont), 745int lineHeight = Math.Abs(_provider.Logfont.lfHeight);
System.Windows.Forms.Primitives.Tests (6)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (6)
532providerMock.Setup(m => m.Logfont).Returns(font.ToLogicalFont()); 619providerMock.Setup(m => m.Logfont).Returns(font.ToLogicalFont()); 712providerMock.Setup(m => m.Logfont).Returns(font.ToLogicalFont()); 794providerMock.Setup(m => m.Logfont).Returns(font.ToLogicalFont()); 1201providerMock.Setup(m => m.Logfont).Returns(font.ToLogicalFont()); 1205double actual = textRange.TestAccessor().GetFontSize(provider.Logfont);