Propriedade XmlMappedRange.Width

Obtém a largura do XmlMappedRange o controle em pontos.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (em Microsoft.Office.Tools.Excel.dll)

Sintaxe

'Declaração
ReadOnly Property Width As Object
    Get
Object Width { get; }

Valor de propriedade

Tipo: System.Object
A largura do XmlMappedRange o controle em pontos.

Exemplos

O seguinte exemplo de código usa a Width e Height Propriedades para exibir a largura e altura de um XmlMappedRange chamado CustomerLastNameCell. Este exemplo de código pressupõe que a planilha atual contém um XmlMappedRange chamado 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.");
}

Segurança do .NET Framework

Consulte também

Referência

XmlMappedRange Interface

Namespace Microsoft.Office.Tools.Excel