, , , TextBox
. , Word Wrap, .
, TextWrapping
- NoWrap
. . , , 59 , .
<TextBox Name="textBox1"
TextWrapping="NoWrap"
AcceptsReturn="True"
AcceptsTab="True"
MaxLines="3000"
KeyDown="textBox1_KeyDown"/>
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
int CurrentLine = textBox1.GetLineIndexFromCharacterIndex(textBox1.Text.Length);
if (textBox1.GetLineLength(CurrentLine) >= 59)
{
e.Handled = true;
}
}
,
, :)