- 追加された行はこの色です。
- 削除された行はこの色です。
* テキストボックスに文字列を追記 [#v79fea99]
ログ出力など、行単位でどんどん追記する場合に。
public void out(string text){
txtBox.SelectionStart=txtBox.Text.Length;
txtBox.SelectionLength=0;
txtBox.SelectedText=text+"\r\n";
txtBox.SelectionStart=txtBox.Text.Length;
txtBox.SelectionLength=0;
}
#code(Csharp,nooutline){{
public void out(string text){
txtBox.SelectionStart=txtBox.Text.Length;
txtBox.SelectionLength=0;
txtBox.SelectedText=text+"\r\n";
txtBox.SelectionStart=txtBox.Text.Length;
txtBox.SelectionLength=0;
}
}}
#comment