コード例 #1
0
ファイル: Style.cs プロジェクト: wuzzeb/NanoXLSX
 /// <summary>
 /// Default constructor
 /// </summary>
 public Style()
 {
     CurrentBorder = new Border();
     CurrentCellXf = new CellXf();
     CurrentFill = new Fill();
     CurrentFont = new Font();
     CurrentNumberFormat = new NumberFormat();
     styleNameDefined = false;
     name = this.GetHashCode().ToString();
 }
コード例 #2
0
ファイル: Style.cs プロジェクト: wuzzeb/NanoXLSX
 /// <summary>
 /// Constructor with parameters
 /// </summary>
 /// <param name="name">Name of the style</param>
 public Style(string name)
 {
     CurrentBorder = new Border();
     CurrentCellXf = new CellXf();
     CurrentFill = new Fill();
     CurrentFont = new Font();
     CurrentNumberFormat = new NumberFormat();
     styleNameDefined = false;
     this.name = name;
 }
コード例 #3
0
ファイル: Style.cs プロジェクト: wuzzeb/NanoXLSX
 /// <summary>
 /// Constructor with parameters (internal use)
 /// </summary>
 /// <param name="name">Name of the style</param>
 /// <param name="forcedOrder">Number of the style for sorting purpose. Style will be placed to this position (internal use only)</param>
 /// <param name="internalStyle">If true, the style is marked as internal</param>
 public Style(string name, int forcedOrder, bool internalStyle)
 {
     CurrentBorder = new Border();
     CurrentCellXf = new CellXf();
     CurrentFill = new Fill();
     CurrentFont = new Font();
     CurrentNumberFormat = new NumberFormat();
     this.name = name;
     InternalID = forcedOrder;
     this.internalStyle = internalStyle;
     styleNameDefined = true;
 }