コード例 #1
0
 private void Initialize()
 {
     _Font      = new FontOptions();
     _Interior  = new InteriorOptions();
     _Alignment = new AlignmentOptions();
     _Border    = new BorderOptions();
 }
コード例 #2
0
 internal bool CheckForMatch(FontOptions other)
 {
     return(Name == other.Name &&
            Size == other.Size &&
            Bold == other.Bold &&
            Underline == other.Underline &&
            Italic == other.Italic &&
            Strikeout == other.Strikeout &&
            Color == other.Color);
 }
コード例 #3
0
ファイル: XmlStyle.cs プロジェクト: ChiangHanLung/PIC_VDS
		internal bool CheckForMatch(FontOptions other)
		{
			return (Name == other.Name &&
					Size == other.Size &&
					Bold == other.Bold &&
					Underline == other.Underline &&
					Italic == other.Italic &&
					Strikeout == other.Strikeout &&
					Color == other.Color);
		}
コード例 #4
0
        /// <summary>
        /// Creates a new instance from another instance of XmlStyle
        /// </summary>
        /// <param name="style">Instance to copy</param>
        public XmlStyle(XmlStyle style)
        {
            if (style == null)
            {
                Initialize();
                SetDefaults();
                return;
            }

            ID = "";

            _Font      = new FontOptions(style._Font);
            _Interior  = new InteriorOptions(style._Interior);
            _Alignment = new AlignmentOptions(style._Alignment);
            _Border    = new BorderOptions(style._Border);

            DisplayFormat = style.DisplayFormat;
        }
コード例 #5
0
ファイル: XmlStyle.cs プロジェクト: ChiangHanLung/PIC_VDS
		private void Initialize()
		{
			_Font = new FontOptions();
			_Interior = new InteriorOptions();
			_Alignment = new AlignmentOptions();
			_Border = new BorderOptions();
		}
コード例 #6
0
ファイル: XmlStyle.cs プロジェクト: ChiangHanLung/PIC_VDS
		/// <summary>
		/// Creates a new instance from another instance of XmlStyle
		/// </summary>
		/// <param name="style">Instance to copy</param>
		public XmlStyle(XmlStyle style)
		{
			if (style == null)
			{
				Initialize();
				SetDefaults();
				return;
			}

			ID = "";

			_Font = new FontOptions(style._Font);
			_Interior = new InteriorOptions(style._Interior);
			_Alignment = new AlignmentOptions(style._Alignment);
			_Border = new BorderOptions(style._Border);

			DisplayFormat = style.DisplayFormat;
		}