CampfireHoon.ChatMessage.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            return string.Format("{0}: {1}\r\n", Username, Body);
        }
    }

Usage Example

コード例 #1
0
ファイル: Form1.cs プロジェクト: pebblecode/ChatQuiz
 private void PrintLine(ChatMessage message)
 {
     this.textBox1.AppendText(message.ToString());
     this.textBox1.SelectionStart  = this.textBox1.Text.Length - 1;
     this.textBox1.SelectionLength = 0;
     this.textBox1.ScrollToCaret();
 }
All Usage Examples Of CampfireHoon.ChatMessage::ToString
ChatMessage