WorksheetBase.StandardWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the standard (default) width of all the columns in the worksheet.
public:
property double StandardWidth { double get(); void set(double value); };
public double StandardWidth { get; set; }
member this.StandardWidth : double with get, set
Public Property StandardWidth As Double
Property Value
The standard (default) width of all the columns in the worksheet.
Examples
The following code example uses the StandardWidth property to display the default width of all the columns in the current worksheet.
This example is for a document-level customization.
private void DisplayStandardWidth()
{
MessageBox.Show("The default column width is " +
this.StandardWidth.ToString() + " characters.");
}
Private Sub DisplayStandardWidth()
MsgBox("The default column width is " & _
Me.StandardWidth.ToString() & " characters.")
End Sub
Remarks
One unit of column width is equal to the width of one character in the Normal style. For proportional fonts, the width of the character 0 (zero) is used.