XmlMappedRange.Width Propriété

Définition

Obtient la largeur du contrôle XmlMappedRange en points.

public object Width { get; }

Valeur de propriété

Object

Largeur du contrôle XmlMappedRange en points.

Exemples

L’exemple de code suivant utilise Width les Height Propriétés et pour afficher la largeur et la hauteur d’un XmlMappedRange nommé CustomerLastNameCell . Cet exemple de code suppose que la feuille de calcul active contient un XmlMappedRange nommé 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

S’applique à