33 references to Underline
System.Drawing.Common.Tests (10)
System\Drawing\FontConverterTests.cs (1)
169{ $"Arial{Separator} 10{Separator} style=12", "Arial", 10f, GraphicsUnit.Point, FontStyle.Underline | FontStyle.Strikeout },
System\Drawing\FontTests.cs (9)
94yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline }; 176yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline, GraphicsUnit.Pixel }; 218yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline, GraphicsUnit.Pixel, 10 }; 260yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline, GraphicsUnit.Pixel, 10, true }; 563[InlineData(FontStyle.Strikeout | FontStyle.Underline | FontStyle.Italic, 549, 1)] 564[InlineData(FontStyle.Strikeout | FontStyle.Underline | FontStyle.Italic | FontStyle.Bold, 550, 1)] 565[InlineData(FontStyle.Strikeout | FontStyle.Underline | FontStyle.Bold | FontStyle.Italic, int.MaxValue, 1)] 581lfUnderline = (fontStyle & FontStyle.Underline) != 0 ? (byte)1 : (byte)0, 865Assert.Equal((expectedStyle & FontStyle.Underline) != 0, font.Underline);
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3780style |= FontStyle.Underline;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
530using Font alwaysUnderlined = new Font(Font, Font.Style | FontStyle.Underline);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (6)
206style |= FontStyle.Underline; 210style &= ~FontStyle.Underline; 230hoverStyle |= FontStyle.Underline; 234hoverStyle &= ~FontStyle.Underline; 242linkStyle |= FontStyle.Underline; 246linkStyle &= ~FontStyle.Underline;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2794subItemFont = new Font(item.SubItems[0].Font, FontStyle.Underline);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2199style |= FontStyle.Underline;
System\Windows\Forms\Rendering\FontCache.Data.cs (2)
96lfUnderline = (font.Style & FontStyle.Underline) == FontStyle.Underline ? True : False,
System.Windows.Forms.Tests (11)
System\Windows\Forms\AxHostTests.cs (2)
1475using Font font = new("Arial", 10, FontStyle.Bold | FontStyle.Underline | FontStyle.Italic | FontStyle.Strikeout, GraphicsUnit.Point, 10); 1544using Font font = new("Arial", 10, FontStyle.Bold | FontStyle.Underline | FontStyle.Italic | FontStyle.Strikeout, GraphicsUnit.Point, 10);
System\Windows\Forms\RichTextBoxTests.cs (7)
1585yield return new object[] { "Arial", 8.25f, FontStyle.Underline, GraphicsUnit.Point, 1, 165, CFE_EFFECTS.CFE_UNDERLINE }; 1586yield return new object[] { "Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10, 165, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ITALIC | CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_STRIKEOUT }; 4723yield return new object[] { CFM_MASK.CFM_UNDERLINE, CFE_EFFECTS.CFE_UNDERLINE, 0, arial, "Arial", 13, FontStyle.Underline }; 4724yield return new object[] { CFM_MASK.CFM_UNDERLINE, CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_UNDERLINE, 0, arial, "Arial", 13, FontStyle.Underline }; 4815yield return new object[] { "Arial", 8.25f, true, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10, 1 }; 4919yield return new object[] { new Font("Arial", 8.25f, FontStyle.Underline), 165, CFE_EFFECTS.CFE_UNDERLINE }; 4920yield return new object[] { new Font("Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10), 165, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ITALIC | CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_STRIKEOUT };
System\Windows\Forms\ToolStripLabelTests.cs (2)
173accessor._hoverLinkFont = new Font("Arial", 10, FontStyle.Underline); 186accessor._hoverLinkFont = new Font("Arial", 10, FontStyle.Underline);