public override void Copy(BaseFormattingObject source)
        {
            ConditionalFormattingObject source1 = source as ConditionalFormattingObject;

            if (source1 != null)
            {
                ReflectionHelper.CopyFields <ConditionalFormattingObject>(this, source1);
                this.OnPropertyChanged("CellBackColor");
            }
            else
            {
                base.Copy(source);
            }
        }
Exemplo n.º 2
0
        public void CopyTo(BaseFormattingObject format)
        {
            format.RowForeColor     = this.rowForeColor;
            format.RowBackColor     = this.rowBackColor;
            format.CellForeColor    = this.cellForeColor;
            format.CellBackColor    = this.cellBackColor;
            format.TextAlignment    = this.textAlignment;
            format.RowTextAlignment = this.rowTextAlignment;
            format.CellFont         = this.cellFont;
            format.RowFont          = this.rowFont;
            format.Enabled          = this.enabled;
            ConditionalFormattingObject formattingObject = format as ConditionalFormattingObject;

            if (formattingObject == null)
            {
                return;
            }
            formattingObject.CaseSensitive = this.caseSensitive;
        }
Exemplo n.º 3
0
        public void CopyFrom(BaseFormattingObject format)
        {
            this.rowForeColor        = format.RowForeColor;
            this.rowBackColor        = format.RowBackColor;
            this.cellForeColor       = format.CellForeColor;
            this.cellBackColor       = format.CellBackColor;
            this.textAlignment       = format.TextAlignment;
            this.rowTextAlignment    = format.RowTextAlignment;
            this.cellFont            = format.CellFont;
            this.rowFont             = format.RowFont;
            this.enabled             = format.Enabled;
            this.applyOnSelectedRows = format.ApplyOnSelectedRows;
            ConditionalFormattingObject formattingObject = format as ConditionalFormattingObject;

            if (formattingObject == null)
            {
                return;
            }
            this.caseSensitive = formattingObject.CaseSensitive;
        }