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;
            }
        }
 public XLPhonetics(IXLFontBase defaultFont)
 {
     _defaultFont = defaultFont;
     Type = XLPhoneticType.FullWidthKatakana;
     Alignment = XLPhoneticAlignment.Left;
     this.CopyFont(_defaultFont);
 }
 public XLPhonetics(IXLPhonetics defaultPhonetics, IXLFontBase defaultFont)
 {
     _defaultFont = defaultFont;
     Type = defaultPhonetics.Type;
     Alignment = defaultPhonetics.Alignment;
     
     this.CopyFont(defaultPhonetics);
 }
Beispiel #4
0
 public XLComment(XLCell cell, XLFormattedText <IXLComment> defaultComment, IXLFontBase defaultFont)
     : base(defaultComment, defaultFont)
 {
     Initialize(cell);
 }
 public XLRichString(String text, IXLFontBase font, IXLWithRichString withRichString)
 {
     Text = text;
     this.CopyFont(font);
     _withRichString = withRichString;
 }
Beispiel #6
0
 public XLComment(XLCell cell, String text, IXLFontBase defaultFont)
     : base(text, defaultFont)
 {
     Initialize(cell);
 }
Beispiel #7
0
 public XLComment(XLCell cell, IXLFontBase defaultFont)
     : base(defaultFont)
 {
     Initialize(cell);
 }
Beispiel #8
0
 public XLFormattedText(String text, IXLFontBase defaultFont)
     : this(defaultFont)
 {
     AddText(text);
 }
Beispiel #9
0
        public IXLRichString AddText(String text, IXLFontBase font)
        {
            var richText = new XLRichString(text, font, this);

            return(AddText(richText));
        }
 public XLRichText(IXLFontBase defaultFont)
     : base(defaultFont)
 {
     Container = this;
 }
Beispiel #11
0
 public XLFormattedText(IXLFontBase defaultFont)
 {
     Length       = 0;
     _defaultFont = defaultFont;
 }
 public XLRichText(String text, IXLFontBase defaultFont)
     : base(text, defaultFont)
 {
     Container = this;
 }
 public XLRichText(XLFormattedText <IXLRichText> defaultRichText, IXLFontBase defaultFont)
     : base(defaultRichText, defaultFont)
 {
     Container = this;
 }
Beispiel #14
0
 public XLComment(XLCell cell, IXLFontBase defaultFont = null, int?shapeId = null)
     : base(defaultFont ?? XLFont.DefaultCommentFont)
 {
     Initialize(cell, shapeId: shapeId);
 }
Beispiel #15
0
 public XLComment(XLCell cell, XLFormattedText <IXLComment> defaultComment, IXLFontBase defaultFont, IXLDrawingStyle style)
     : base(defaultComment, defaultFont)
 {
     Initialize(cell, style);
 }
 public XLRichString(String text, IXLFontBase font, IXLWithRichString withRichString)
 {
     Text = text;
     this.CopyFont(font);
     _withRichString = withRichString;
 }