Compartir a través de


XmlMappedRange.EntireColumn (Propiedad)

Obtiene un objeto Range que representa toda la columna que contiene el control XmlMappedRange.

Espacio de nombres:  Microsoft.Office.Tools.Excel
Ensamblado:  Microsoft.Office.Tools.Excel (en Microsoft.Office.Tools.Excel.dll)

Sintaxis

'Declaración
ReadOnly Property EntireColumn As Range
    Get
Range EntireColumn { get; }

Valor de propiedad

Tipo: Microsoft.Office.Interop.Excel.Range
Objeto Range que representa toda la columna que contiene el control XmlMappedRange.

Ejemplos

En el siguiente ejemplo de código se utilizan las propiedades EntireColumn y EntireRow para establecer en verde el color del borde de la columna y fila que contienen un control XmlMappedRange. En este ejemplo de código se supone que la hoja de cálculo actual contiene un control XmlMappedRange denominado 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;
}

Seguridad de .NET Framework

Vea también

Referencia

XmlMappedRange Interfaz

Microsoft.Office.Tools.Excel (Espacio de nombres)