XmlMappedRange.Height 属性

获取 XmlMappedRange 控件的高度(以磅为单位)。

命名空间:  Microsoft.Office.Tools.Excel
程序集:  Microsoft.Office.Tools.Excel(在 Microsoft.Office.Tools.Excel.dll 中)

语法

声明
ReadOnly Property Height As Object
    Get
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 命名空间