39 references to SingleLine
System.Windows.Forms (24)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
136TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 211TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
97TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 171TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
98TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 171TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
774Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, Font, new Size(short.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine); 785Size textSize = TextRenderer.MeasureText(LayoutUtils.TestString, Font, new Size(short.MaxValue, (int)(FontHeight * 1.25)), TextFormatFlags.SingleLine);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
19private const TextFormatFlags TextFormatSupportedFlags = TextFormatFlags.SingleLine 2634if (oneLineSize.Height >= maxHeight || (flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
971if ((flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2320if ((flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
1022if ((flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
883if ((flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
738if ((flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
323if ((flags & TextFormatFlags.SingleLine) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (3)
132tff |= TextFormatFlags.SingleLine; 320if ((flags & TextFormatFlags.SingleLine) != 0) 466TextFormatFlags.SingleLine |
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (2)
65TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine, 114TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
843format |= TextFormatFlags.SingleLine;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
50Size textSize = TextRenderer.MeasureText(obj.ToString(), font, new Size(short.MaxValue, short.MaxValue), TextFormatFlags.SingleLine);
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
85| TextFormatFlags.SingleLine | TextFormatFlags.HidePrefix);
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataGridViewCellTests.cs (6)
5335[InlineData("truncate_me\r\nnew\rn\nnew", TextFormatFlags.Default | TextFormatFlags.SingleLine)] 5337[InlineData("truncate_me\r\truncate_me_again", TextFormatFlags.Default | TextFormatFlags.SingleLine)] 5391[InlineData("truncate_me\r\nnew\rn\nnew", TextFormatFlags.Default | TextFormatFlags.SingleLine)] 5393[InlineData("truncate_me\r\truncate_me_again", TextFormatFlags.Default | TextFormatFlags.SingleLine)] 5437[InlineData("truncate_me\r\nnew\rn\nnew", TextFormatFlags.Default | TextFormatFlags.SingleLine)] 5439[InlineData("truncate_me\r\truncate_me_again", TextFormatFlags.Default | TextFormatFlags.SingleLine)]
System\Windows\Forms\TextRendererTests.cs (8)
94yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.SingleLine }; 135yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 242yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.SingleLine }; 243yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, TextFormatFlags.SingleLine }; 286yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 287yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, int.MaxValue, int.MaxValue), Color.Red, Color.Blue, TextFormatFlags.SingleLine }; 449yield return new object[] { "string", SystemFonts.MenuFont, new Size(100, 200), TextFormatFlags.SingleLine }; 450yield return new object[] { "string", SystemFonts.MenuFont, new Size(int.MaxValue, int.MaxValue), TextFormatFlags.SingleLine };
TextBoxBaseTests.cs (1)
5128int width = TextRenderer.MeasureText(control.Text, control.Font, Size.Empty, TextFormatFlags.SingleLine).Width;