Exemple #1
0
 public XMLStyleModel(CT_Xf xf, StyleManager manager, bool setVerticalAlignment)
 {
     _xf      = xf;
     _manager = manager;
     _font    = (_xf.ApplyFont_Attr ? _manager.GetFont(_xf.FontId_Attr) : new XMLFontModel(_manager.Palette));
     _border  = (_xf.ApplyBorder_Attr ? _manager.GetBorder(_xf.BorderId_Attr) : new XMLBorderModel(_manager.Palette));
     _fill    = (_xf.ApplyFill_Attr ? _manager.GetFill(_xf.FillId_Attr).DeepClone() : new XMLFillModel(_manager.Palette));
     if (setVerticalAlignment)
     {
         Alignment.Vertical_Attr = ST_VerticalAlignment.top;
         Alignment.WrapText_Attr = true;
     }
 }
 public uint AddFont(XMLFontModel model)
 {
     return(_fonts.Add(model));
 }