本文整理汇总了C#中System.Windows.Forms.Message.get_Body方法的典型用法代码示例。如果您正苦于以下问题:C# Message.get_Body方法的具体用法?C# Message.get_Body怎么用?C# Message.get_Body使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Message
的用法示例。
在下文中一共展示了Message.get_Body方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IncomingMessage
private void IncomingMessage(Message msg)
{
if (msg.get_Type() != 0)
{
if (msg.get_Subject() != null)
{
this.txtSubject.Text = msg.get_Subject();
this.rtfChat.SelectionColor = Color.DarkGreen;
this.rtfChat.AppendText(msg.get_From().get_Resource() + " changed subject: ");
this.rtfChat.SelectionColor = Color.Black;
this.rtfChat.AppendText(msg.get_Subject());
this.rtfChat.AppendText("\r\n");
}
else if (msg.get_Body() != null)
{
this.rtfChat.SelectionColor = Color.Red;
this.rtfChat.AppendText(msg.get_From().get_Resource() + " said: ");
this.rtfChat.SelectionColor = Color.Black;
this.rtfChat.AppendText(msg.get_Body());
this.rtfChat.AppendText("\r\n");
}
}
}
示例2: OutgoingMessage
private void OutgoingMessage(Message msg)
{
this.rtfChat.SelectionColor = Color.Blue;
this.rtfChat.AppendText("<我> : ");
this.rtfChat.SelectionColor = Color.Black;
this.rtfChat.AppendText(msg.get_Body());
this.rtfChat.AppendText("\r\n");
}
示例3: IncomingMessage
public void IncomingMessage(Message msg)
{
this.rtfChat.SelectionColor = Color.Red;
this.rtfChat.AppendText("<" + this._nickname + "> : ");
this.rtfChat.SelectionColor = Color.Black;
this.rtfChat.AppendText(msg.get_Body());
this.rtfChat.AppendText("\r\n");
}
示例4: MessageCallback
private void MessageCallback(object sender, Message msg, object data)
{
if (base.InvokeRequired)
{
base.BeginInvoke(new MessageCB(this, (IntPtr) this.MessageCallback), new object[] { sender, msg, data });
}
else if (msg.get_Body() != null)
{
this.IncomingMessage(msg);
}
}