/// <summary> /// Constructs a single-cellrow table column. /// </summary> /// <param name="columnName">The identifying name of the column.</param> /// <param name="columnDisplayName">The display name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> /// <param name="comparison">A custom comparison operator that is used for sorting based on this column.</param> public TableColumn( string columnName, [param : Localizable(true)] string columnDisplayName, GetColumnValueDelegate<TItem, TColumn> valueGetter, SetColumnValueDelegate<TItem, TColumn> valueSetter, float widthFactor, Comparison<TItem> comparison) : this(columnName, columnDisplayName, valueGetter, valueSetter, widthFactor, comparison, 0) {}
/// <summary> /// Constructs a Multi-cellrow table column with specific width factor but no comparison delegate. /// </summary> /// <param name="columnName">The identifying name of the column.</param> /// <param name="columnDisplayName">The display name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> /// <param name="cellRow">The cell row this column will be displayed in.</param> public TableColumn( string columnName, [param : Localizable(true)] string columnDisplayName, GetColumnValueDelegate<TItem, TColumn> valueGetter, SetColumnValueDelegate<TItem, TColumn> valueSetter, float widthFactor, int cellRow) : this(columnName, columnDisplayName, valueGetter, valueSetter, widthFactor, null, cellRow) {}
/// <summary> /// Constructs a single-cellrow table column with specific width factor but no comparison delegate. /// </summary> /// <param name="columnName">The identifying name of the column.</param> /// <param name="columnDisplayName">The display name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> public TableColumn( string columnName, string columnDisplayName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, float widthFactor) : this(columnName, columnDisplayName, valueGetter, valueSetter, widthFactor, null) { }
/// <summary> /// Constructs a single-cellrow table column with specific width factor but no comparison delegate. /// </summary> /// <param name="columnName">The name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> public TableColumn( [param: Localizable(true)] string columnName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, float widthFactor) : this(columnName, valueGetter, valueSetter, widthFactor, null) { }
/// <summary> /// Constructs a single-cellrow table column. /// </summary> /// <param name="columnName">The name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> /// <param name="comparison">A custom comparison operator that is used for sorting based on this column.</param> public TableColumn( string columnName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, float widthFactor, Comparison <TItem> comparison) : this(columnName, valueGetter, valueSetter, widthFactor, comparison, 0) { }
/// <summary> /// Constructs a Multi-cellrow table column with specific width factor but no comparison delegate. /// </summary> /// <param name="columnName">The name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> /// <param name="cellRow">The cell row this column will be displayed in.</param> public TableColumn( string columnName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, float widthFactor, int cellRow) : this(columnName, valueGetter, valueSetter, widthFactor, null, cellRow) { }
/// <summary> /// Constructs a multi-cellrow table column. /// </summary> /// <param name="columnName">The identifying name of the column.</param> /// <param name="columnDisplayName">The display name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="widthFactor">A weighting factor that is applied to the width of the column.</param> /// <param name="comparison">A custom comparison operator that is used for sorting based on this column.</param> /// <param name="cellRow">The cell row this column will be displayed in.</param> public TableColumn( string columnName, string columnDisplayName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, float widthFactor, Comparison <TItem> comparison, int cellRow) : base(columnName, columnDisplayName, typeof(TColumn), widthFactor, comparison, cellRow) { _valueGetter = valueGetter; _valueSetter = valueSetter; }
/// <summary> /// Constructs a single-cellrow table column with no comparison delegate. /// </summary> /// <param name="columnName">The identifying name of the column.</param> /// <param name="columnDisplayName">The display name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> public TableColumn(string columnName, string columnDisplayName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter) : this(columnName, columnDisplayName, valueGetter, valueSetter, 1.0f, null) { }
/// <summary> /// Constructs a Multi-cellrow table column with no comparison delegate. /// </summary> /// <param name="columnName">The name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="cellRow">The cell row this column will be displayed in.</param> public TableColumn(string columnName, GetColumnValueDelegate <TItem, TColumn> valueGetter, SetColumnValueDelegate <TItem, TColumn> valueSetter, int cellRow) : this(columnName, valueGetter, valueSetter, 1.0f, null, cellRow) { }
/// <summary> /// Constructs a Multi-cellrow table column with no comparison delegate. /// </summary> /// <param name="columnName">The name of the column.</param> /// <param name="valueGetter">A delegate that accepts an item and pulls the column value from the item.</param> /// <param name="valueSetter">A delegate that accepts an item and a value, and pushes the value to the item. May be null if the column is read-only.</param> /// <param name="cellRow">The cell row this column will be displayed in.</param> public TableColumn([param : Localizable(true)] string columnName, GetColumnValueDelegate<TItem, TColumn> valueGetter, SetColumnValueDelegate<TItem, TColumn> valueSetter, int cellRow) : this(columnName, valueGetter, valueSetter, 1.0f, null, cellRow) {}