Propriedade XmlMappedRange.EntireRow

Obtém um Range que representa a linha que contém o XmlMappedRange de controle.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (em Microsoft.Office.Tools.Excel.dll)

Sintaxe

'Declaração
ReadOnly Property EntireRow As Range
    Get
Range EntireRow { get; }

Valor de propriedade

Tipo: Microsoft.Office.Interop.Excel.Range
A Range que representa a linha que contém o XmlMappedRange de controle.

Exemplos

O seguinte exemplo de código usa a EntireColumn e EntireRow Propriedades para definir a cor da borda da coluna e linha que contém um XmlMappedRange a verde. Este exemplo de código pressupõe que a planilha atual contém um XmlMappedRange chamado CustomerLastNameCell.

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;
}

Segurança do .NET Framework

Consulte também

Referência

XmlMappedRange Interface

Namespace Microsoft.Office.Tools.Excel