Propriedade XmlMappedRange.EntireColumn

Obtém Range que representa a coluna inteira que contém o controle de XmlMappedRange .

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

Sintaxe

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

Valor de propriedade

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

Exemplos

O exemplo de código usa as propriedades de EntireColumn e de EntireRow para definir a cor da borda da coluna e linha para que contêm XmlMappedRange para verde.Este exemplo de código a seguir pressupõe que a planilha atual contiver 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