XmlMappedRange.RowHeight 属性

获取或设置包含 XmlMappedRange 控件的行的高度(以磅为单位)。

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

语法

声明
Property RowHeight As Object
    Get
    Set
Object RowHeight { get; set; }

属性值

类型:System.Object
包含 XmlMappedRange 控件的行的高度(以磅为单位)。

示例

下面的代码示例使用 ColumnWidth 和 RowHeight 属性显示 XmlMappedRange 的宽度和高度。 此代码示例假定当前工作表包含一个名为 CustomerLastNameCell 的 XmlMappedRange

Private Sub DisplayColumnAndRowSizes()
    MsgBox("CustomerLastNameCell is  " & _
        Me.CustomerLastNameCell.ColumnWidth & _
        " characters wide and " & Me.CustomerLastNameCell.RowHeight & _
        " points high.")
End Sub
private void DisplayColumnAndRowSizes()
{
    MessageBox.Show("CustomerLastNameCell is  " +
    this.CustomerLastNameCell.ColumnWidth + " characters wide and " +
    this.CustomerLastNameCell.RowHeight + " points high.");
}

.NET Framework 安全性

请参见

参考

XmlMappedRange 接口

Microsoft.Office.Tools.Excel 命名空间