Udostępnij za pośrednictwem


XmlMappedRange.ColumnWidth Property (2007 System)

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

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public Property ColumnWidth As Object
'Usage
Dim instance As XmlMappedRange 
Dim value As Object 

value = instance.ColumnWidth

instance.ColumnWidth = value
[BrowsableAttribute(false)]
public Object ColumnWidth { get; set; }
[BrowsableAttribute(false)]
public:
property Object^ ColumnWidth {
    Object^ get ();
    void set (Object^ value);
}
public function get ColumnWidth () : Object 
public function set ColumnWidth (value : Object)

Property Value

Type: System.Object
The width of the column in the XmlMappedRange control.

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.

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

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace