다음을 통해 공유


XmlMappedRange.Next Property

Definition

Gets a Range that represents the next cell.

public:
 property Microsoft::Office::Interop::Excel::Range ^ Next { Microsoft::Office::Interop::Excel::Range ^ get(); };
public Microsoft.Office.Interop.Excel.Range Next { get; }
member this.Next : Microsoft.Office.Interop.Excel.Range
Public ReadOnly Property Next As Range

Property Value

A Range that represents the next cell.

Examples

The following code example uses the Next property to select the cell to the right of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void SelectNext()
{
    this.CustomerLastNameCell.Next.Select();
}
Private Sub SelectNext()
    Me.CustomerLastNameCell.Next.Select()
End Sub

Remarks

This property emulates the TAB key, although the property returns the next cell without selecting it.

On a protected sheet, this property returns the next unlocked cell. On an unprotected sheet, this property always returns the cell immediately to the right of the specified cell.

Applies to