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