Example #1
0
        public void SetFont(XMLFontModel font)
        {
            XMLFontModel xMLFontModel = new XMLFontModel(_palette);

            xMLFontModel.copy(font);
            Bold          = xMLFontModel.Bold;
            Italic        = xMLFontModel.Italic;
            Strikethrough = xMLFontModel.Strikethrough;
            Name          = xMLFontModel.Name;
            Size          = xMLFontModel.Size;
            Underline     = xMLFontModel.Underline;
            ScriptStyle   = xMLFontModel.ScriptStyle;
            Color         = xMLFontModel.Color;
        }
        public void SetFont(XMLFontModel font)
        {
            XMLFontModel xMLFontModel = new XMLFontModel(this._palette);

            xMLFontModel.copy(font);
            this.Bold          = xMLFontModel.Bold;
            this.Italic        = xMLFontModel.Italic;
            this.Strikethrough = xMLFontModel.Strikethrough;
            this.Name          = xMLFontModel.Name;
            this.Size          = xMLFontModel.Size;
            this.Underline     = xMLFontModel.Underline;
            this.ScriptStyle   = xMLFontModel.ScriptStyle;
            this.Color         = xMLFontModel.Color;
        }