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