XmlMappedRange.Width Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la largeur du contrôle XmlMappedRange en points.
public object Width { get; }
Valeur de propriété
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