示例#1
0
 protected void InitEntry(params TableColumnOption[] options)
 {
     if (!options.Any(op => op.type == TableColumnOption.Type.Title))
     {
         options = options.Concat(new TableColumnOption[] { TableColumn.Title(GetDefaultTitle()) }).ToArray();
     }
     this.entry = new TableColumnEntry(options);
 }
示例#2
0
 public TableColumn(string title, params TableColumnOption[] options)
 {
     this.entry = new TableColumnEntry(options.Concat(new TableColumnOption[] { TableColumn.Title(title) }).ToArray());
 }
示例#3
0
 public TableColumn(string title, float width, params TableColumnOption[] options) : this(title, options.Concat(new[] { TableColumn.Width(width) }).ToArray())
 {
     this.entry = new TableColumnEntry(options.Concat(new TableColumnOption[] { TableColumn.Title(title), TableColumn.Width(width) }).ToArray());
 }
示例#4
0
 /// <summary>
 /// Initializes a column with its title and options.
 /// Edit the other public properties for more settings.
 /// </summary>
 /// <param name="title">The column title.</param>
 /// <param name="options">The column options.</param>
 public TableColumn(string title, params TableColumnOption[] options)
 {
     this.title = title;
     this.entry = new TableColumnEntry(options);
 }