Version

Search Results

WorksheetColumn Class Members

Public Properties Public Methods

AutoFitWidth() Method

Sets the Width to the extent required to display the contents of this column. Syntax Exceptions Exception Description System.InvalidOperationException The column is not associated with a Worksheet such as when the column has been deleted or the Worksheet is not associated with a Workbook such as when the Worksheet...

AutoFitWidth(Int32,Int32) Method

Sets the width to the extent required to display all of the contents for the specified range of rows. Syntax Parameters startRowIndex A 0-based index of the first row whose contents are to be calculatedendRowIndex A 0-based index of the last row whose contents are to be calculated Exceptions Exception Description ...

AutoFitWidth Method

Sets the Width to the extent required to display the contents of this column. Overload List

CalculateAutoFitWidth() Method

Returns the width required for the column to display all of its contents. Syntax Return Value The width needed for the column to display all of its contents. The value is the same units as used for the Width property. Exceptions Exception Description System.InvalidOperationException The column is not associated wi...

CalculateAutoFitWidth(Int32,Int32) Method

Returns the width required for the column to display all of the contents for the specified range of rows. Syntax Parameters startRowIndex A 0-based index of the first row whose contents are to be calculatedendRowIndex A 0-based index of the last row whose contents are to be calculated Return Value The width needed...

CalculateAutoFitWidth Method

Returns the width required for the column to display all of its contents. Overload List

GetWidth Method

Gets the column width in the specified units, or NaN if the column has the default width. Syntax Parameters units The units in which the width should be returned. Return Value The column width in the specified units, or NaN if the column has the default width. Exceptions Exception Description System.ComponentModel...