⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatmessage.cs

📁 这个版本(InteliIM Open Kernel Release 2)是目前最新的(首次公开)
💻 CS
字号:
#region Using Directives

using System.Drawing; 

#endregion

namespace Org.InteliIM.Applications.Messenger.Conversations
{
	/// <summary>
	/// Represnts a chat content.
	/// </summary>
	public class ChatContent
    {
        /// <summary>
        /// Initializes a new instance of the ChatContent class.
        /// </summary>
        public ChatContent()
        {
        }

        private string header;

        /// <summary>
        /// Gets or sets the header text.
        /// </summary>
        public string Header
        {
            get
            {
                if (this.header == null)
                    this.Header = "";

                return this.header;
            }
            set
            {
                this.header = value;
            }
        }

        private string subject;

        /// <summary>
        /// Gets or sets the subject.
        /// </summary>
        /// <value></value>
        public string Subject
        {
            get
            {
                if (this.subject == null)
                    this.subject = "";

                return this.subject;
            }
            set
            {
                this.subject = value;
            }
        }

        private string content;

		/// <summary>
		/// Gets or sets the content.
		/// </summary>
		public string Content
		{
			get
			{
				if(this.content == null)
					this.content = "";

				return this.content;
			}
			set
			{
				this.content = value;
			}
		}

		private string foreColor;

		/// <summary>
		/// Gets or sets the fore color.
		/// </summary>
		public string ForeColor
		{
			get
			{
                if (this.foreColor == null)
                    this.foreColor = "";

                return this.foreColor;
			}
			set
			{
				this.foreColor = value;
			}
		}

		private string fontName;

		/// <summary>
		/// Gets or sets the font name.
		/// </summary>
		public string FontName
		{
			get
			{
				if(this.fontName == null)
					this.fontName = "Arial";

				return this.fontName;
			}
			set
			{
				this.fontName = value;
			}
		}

		private float fontSize = 10f;

		/// <summary>
		/// Gets or sets the font size.
		/// </summary>
		public float FontSize
		{
			get
			{
				return this.fontSize;
			}
			set
			{
				this.fontSize = value;
			}
		}

		private FontStyle fontStyle = FontStyle.Regular;

		/// <summary>
		/// Gets or sets the font style.
		/// </summary>
		public FontStyle FontStyle
		{
			get
			{
				return this.fontStyle;
			}
			set
			{
				this.fontStyle = value;
			}
        }

        private bool multicast = false;

        /// <summary>
        /// Gets or sets the multicast.
        /// </summary>
        public bool Multicast
        {
            get
            {
                return this.multicast;
            }
            set
            {
                this.multicast = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -