共用方式為


XmlMappedRange.Width Property

Definition

Gets the width of the XmlMappedRange control in points.

public:
 property System::Object ^ Width { System::Object ^ get(); };
public object Width { get; }
member this.Width : obj
Public ReadOnly Property Width As Object

Property Value

The width of the XmlMappedRange control in points.

Examples

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

private void DisplayHeightAndWidth()
{
    MessageBox.Show("CustomerLastNameCell is " +
    this.CustomerLastNameCell.Width + " points wide and " +
    this.CustomerLastNameCell.Height + " points high.");
}
Private Sub DisplayHeightAndWidth()
    MsgBox("CustomerLastNameCell is " & _
        Me.CustomerLastNameCell.Width & _
        " points wide and " & Me.CustomerLastNameCell.Height & _
        " points high.")
End Sub

Applies to