[]
Calculates the minimum width of the C1TreeColumn that will fit the currently displayed content.
public int GetColumnPreferredWidth(int columnIndex)
Type | Name | Description |
---|---|---|
int | columnIndex | The index of the column whose preferred width is to be calculated. |
Type | Description |
---|---|
int | The minimum width of the C1TreeColumn in Columns with given columnIndex that will fit the currently displayed content. |
Type | Condition |
---|---|
IndexOutOfRangeException | Thrown if columnIndex is outside of the Columns bounds. |
Calculates the minimum width of the C1TreeColumn that will fit the currently displayed content.
public int GetColumnPreferredWidth(C1TreeColumn treeColumn)
Type | Name | Description |
---|---|---|
C1TreeColumn | treeColumn |
Type | Description |
---|---|
int | The minimum width of the given column that will fit the currently displayed content. |
Type | Condition |
---|---|
ArgumentNullException | Thrown if given treecolumn is null. |
ArgumentOutOfRangeException | Thrown if given treecolumn doesn't belongs to the Columns collection. |