XmlMappedRange.EntireRow 属性

获取一个 Range,它表示包含 XmlMappedRange 控件的行。

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

语法

声明
ReadOnly Property EntireRow As Range
    Get
Range EntireRow { get; }

属性值

类型:Microsoft.Office.Interop.Excel.Range
一个 Range,表示包含 XmlMappedRange 控件的行。

示例

下面的代码示例使用 EntireColumn 和 EntireRow 属性将包含 XmlMappedRange 的列和行的边框颜色设置为绿色。 此代码示例假定当前工作表包含一个名为 CustomerLastNameCell 的 XmlMappedRange

Private Sub HighlightColumnAndRow()
    ' Set the color of the column and row borders to the 
    ' RGB value for green.
    Me.CustomerLastNameCell.EntireColumn.Borders.Color = &HFF00
    Me.CustomerLastNameCell.EntireRow.Borders.Color = &HFF00
End Sub
private void HighlightColumnAndRow()
{
    // Set the color of the column and row borders to the RGB value for green.
    this.CustomerLastNameCell.EntireColumn.Borders.Color = 0xFF00;
    this.CustomerLastNameCell.EntireRow.Borders.Color = 0xFF00;
}

.NET Framework 安全性

请参见

参考

XmlMappedRange 接口

Microsoft.Office.Tools.Excel 命名空间