Static Public Member Functions | |
| static List< OLVColumn > | BuildColumns< T > (ObjectListView list) |
| Builds the column definitions, installing them into the supplied list, finally returning the list of columns for subsequent processing. | |
Definition at line 197 of file ColumnBuilder.cs.
| static List<OLVColumn> RiggsHill.Windows.Forms.OLVHelper.ColumnBuilder.BuildColumns< T > | ( | ObjectListView | list | ) | [static] |
Builds the column definitions, installing them into the supplied list, finally returning the list of columns for subsequent processing.
The generic parameter is to be the class type from which properties will be extracted and examined for OLVColumnAttributes. Each property which is adorned with this attribute will have an OLVColumn created and populated.
The final list of OLVColumn is attached to the provided list (after clearing any existing columns) with list.RebuildColumns() being invoked as a final step.
This method may be invoked multiple times as it clears any existing columns from the list prior to constructing a new list. This is especially useful in the situation where list.SaveState()/list.RestoreState() is used to save/restore the column states and it's desirable to 'reset' the columns to their default states.
| T |
| list | The list. |
1.5.8