Aracılığıyla paylaş


XmlMappedRange.Width Özellik

Genişliğini alır XmlMappedRange denetim noktaları.

Ad alanı:  Microsoft.Office.Tools.Excel
Derleme:  Microsoft.Office.Tools.Excel (Microsoft.Office.Tools.Excel.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property Width As Object
Object Width { get; }

Özellik Değeri

Tür: System.Object
Genişliğini XmlMappedRange denetim noktaları.

Örnekler

Aşağıdaki kod örneğinde Width ve Height genişliğini ve yüksekliğini görüntülemesini özellikleri bir XmlMappedRange adlı CustomerLastNameCell.Bu kod örneği, geçerli çalışma sayfasının içerdiğini varsayar bir XmlMappedRange adlı 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.");
}

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

XmlMappedRange Arabirim

Microsoft.Office.Tools.Excel Ad Alanı