XmlMappedRange.Height 屬性

取得以點為單位的 XmlMappedRange 控制項高度。

命名空間:  Microsoft.Office.Tools.Excel
組件:  Microsoft.Office.Tools.Excel (在 Microsoft.Office.Tools.Excel.dll 中)

語法

'宣告
ReadOnly Property Height As Object
Object Height { get; }

屬性值

型別:System.Object
XmlMappedRange 控制項高度 (以點為單位)。

範例

下列程式碼範例使用 Width 和 Height 屬性來顯示 XmlMappedRange 的高度和寬度。 這個程式碼範例假設目前工作表包含名為 CustomerLastNameCell 的 XmlMappedRange

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 安全性

請參閱

參考

XmlMappedRange 介面

Microsoft.Office.Tools.Excel 命名空間