次の方法で共有


WorksheetBase.StandardWidth Property

Definition

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.

Applies to