Beispiel #1
0
        public XLFont(IXLStylized container, IXLFontBase defaultFont, Boolean useDefaultModify = true)
        {
            _container = container;
            if (defaultFont == null) return;

            _bold = defaultFont.Bold;
            _italic = defaultFont.Italic;
            _underline = defaultFont.Underline;
            _strikethrough = defaultFont.Strikethrough;
            _verticalAlignment = defaultFont.VerticalAlignment;
            _shadow = defaultFont.Shadow;
            _fontSize = defaultFont.FontSize;
            _fontColor = defaultFont.FontColor;
            _fontName = defaultFont.FontName;
            _fontFamilyNumbering = defaultFont.FontFamilyNumbering;

            if (useDefaultModify)
            {
                var d = defaultFont as XLFont;
                if (d == null) return;
                BoldModified = d.BoldModified;
                ItalicModified = d.ItalicModified;
                UnderlineModified = d.UnderlineModified;
                StrikethroughModified = d.StrikethroughModified;
                VerticalAlignmentModified = d.VerticalAlignmentModified;
                ShadowModified = d.ShadowModified;
                FontSizeModified = d.FontSizeModified;
                FontColorModified = d.FontColorModified;
                FontNameModified = d.FontNameModified;
                FontFamilyNumberingModified = d.FontFamilyNumberingModified;
            }
        }
Beispiel #2
0
        public XLFont(IXLStylized container, IXLFontBase defaultFont, Boolean useDefaultModify = true)
        {
            _container = container;
            if (defaultFont == null)
            {
                return;
            }

            _bold                = defaultFont.Bold;
            _italic              = defaultFont.Italic;
            _underline           = defaultFont.Underline;
            _strikethrough       = defaultFont.Strikethrough;
            _verticalAlignment   = defaultFont.VerticalAlignment;
            _shadow              = defaultFont.Shadow;
            _fontSize            = defaultFont.FontSize;
            _fontColor           = defaultFont.FontColor;
            _fontName            = defaultFont.FontName;
            _fontFamilyNumbering = defaultFont.FontFamilyNumbering;
            _fontCharSet         = defaultFont.FontCharSet;

            if (useDefaultModify)
            {
                var d = defaultFont as XLFont;
                if (d == null)
                {
                    return;
                }
                BoldModified                = d.BoldModified;
                ItalicModified              = d.ItalicModified;
                UnderlineModified           = d.UnderlineModified;
                StrikethroughModified       = d.StrikethroughModified;
                VerticalAlignmentModified   = d.VerticalAlignmentModified;
                ShadowModified              = d.ShadowModified;
                FontSizeModified            = d.FontSizeModified;
                FontColorModified           = d.FontColorModified;
                FontNameModified            = d.FontNameModified;
                FontFamilyNumberingModified = d.FontFamilyNumberingModified;
                FontCharSetModified         = d.FontCharSetModified;
            }
        }
Beispiel #3
0
 public IXLPhonetics SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value; return(this);
 }
Beispiel #4
0
 public IXLStyle SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value;
     return(_container.Style);
 }
 public IXLPhonetics SetUnderline() { Underline = XLFontUnderlineValues.Single; return this; }	public IXLPhonetics SetUnderline(XLFontUnderlineValues value) { Underline = value; return this; }
Beispiel #6
0
 public IXLRichString SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value; return(this);
 }
Beispiel #7
0
 public IXLStyle SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value;
     return _container.Style;
 }
Beispiel #8
0
 public IXLFormattedText <T> SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value; return(this);
 }
 public IXLDrawingStyle SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value;
     return _style;
 }
Beispiel #10
0
 public IXLDrawingStyle SetUnderline(XLFontUnderlineValues value)
 {
     Underline = value;
     return(_style);
 }
 public IXLRichString SetUnderline() { Underline = XLFontUnderlineValues.Single; return this; }	public IXLRichString SetUnderline(XLFontUnderlineValues value) { Underline = value; return this; }