XmlMappedRange.Cells Propriedade

Definição

Obtém um Range que representa as células no controle XmlMappedRange.

public Microsoft.Office.Interop.Excel.Range Cells { get; }

Valor da propriedade

Range

Um Range que representa as células no controle XmlMappedRange.

Exemplos

O exemplo de código a seguir usa a Cells propriedade para exibir o local da célula de um XmlMappedRange . Este exemplo de código pressupõe que a planilha atual contenha um XmlMappedRange chamado CustomerLastNameCell.

private void DisplayCellRange()
{
    Excel.Range range1 = this.CustomerLastNameCell.Cells;
    MessageBox.Show("CustomerLastNameCell is in range " +
        range1.get_Address(missing, missing, Excel.XlReferenceStyle.xlA1));
}
Private Sub DisplayCellRange()
    Dim range1 As Excel.Range = Me.CustomerLastNameCell.Cells
    MsgBox("CustomerLastNameCell is in range " & _
        range1.Address(ReferenceStyle:=Excel.XlReferenceStyle.xlA1))
End Sub

Aplica-se a