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); }
public TableColumn(string title, params TableColumnOption[] options) { this.entry = new TableColumnEntry(options.Concat(new TableColumnOption[] { TableColumn.Title(title) }).ToArray()); }
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()); }
/// <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); }