Compartilhar via


XmlMappedRange.ColumnWidth Property

Definition

Gets or sets the width of the column in the XmlMappedRange control.

public:
 property System::Object ^ ColumnWidth { System::Object ^ get(); void set(System::Object ^ value); };
public object ColumnWidth { get; set; }
member this.ColumnWidth : obj with get, set
Public Property ColumnWidth As Object

Property Value

The width of the column in the XmlMappedRange control.

Examples

The following code example uses the ColumnWidth and RowHeight properties to display the width and height of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void DisplayColumnAndRowSizes()
{
    MessageBox.Show("CustomerLastNameCell is  " +
    this.CustomerLastNameCell.ColumnWidth + " characters wide and " +
    this.CustomerLastNameCell.RowHeight + " points high.");
}
Private Sub DisplayColumnAndRowSizes()
    MsgBox("CustomerLastNameCell is  " & _
        Me.CustomerLastNameCell.ColumnWidth & _
        " characters wide and " & Me.CustomerLastNameCell.RowHeight & _
        " points high.")
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.

Use the Width property to return the width of a column in points.

Applies to