Condividi tramite


Proprietà XmlMappedRange.Width

Ottiene la larghezza, in punti, del controllo XmlMappedRange.

Spazio dei nomi:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

Sintassi

'Dichiarazione
ReadOnly Property Width As Object
    Get
Object Width { get; }

Valore proprietà

Tipo: System.Object
Larghezza, in punti, del controllo XmlMappedRange.

Esempi

Nell'esempio di codice riportato di seguito vengono utilizzate le proprietà Width e Height per visualizzare l'altezza e la larghezza di un controllo XmlMappedRange denominato CustomerLastNameCell. Nell'esempio si presuppone che il foglio di lavoro corrente contenga un controllo XmlMappedRange denominato CustomerLastNameCell.

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

XmlMappedRange Interfaccia

Spazio dei nomi Microsoft.Office.Tools.Excel