Freigeben über


XmlMappedRange.End Property

Definition

Gets a Range that represents the cell at the end of the region that contains the XmlMappedRange control.

public:
 property Microsoft::Office::Tools::Excel::XmlMappedRange_EndType ^ End { Microsoft::Office::Tools::Excel::XmlMappedRange_EndType ^ get(); };
public Microsoft.Office.Tools.Excel.XmlMappedRange_EndType End { get; }
member this.End : Microsoft.Office.Tools.Excel.XmlMappedRange_EndType
Public ReadOnly Property End As XmlMappedRange_EndType

Property Value

A Range that represents the cell at the end of the region that contains the XmlMappedRange control.

Examples

The following code example uses the End property to select the cell at the end of the region that contains an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

private void SelectEnd()
{
    this.CustomerLastNameCell.End[Excel.XlDirection.xlToRight].Select();
}
Private Sub SelectEnd()
    Me.CustomerLastNameCell.End(Excel.XlDirection.xlToRight).Select()
End Sub

Remarks

The End property is intended to be used with the following parameter.

Parameter Description
Direction One of the XlDirection values that indicates the direction in which to find the last cell.

If you attempt to use End without specifying any parameters, End will get an XmlMappedRange_EndType object that is part of the Office development tools in Visual Studio infrastructure and is not intended to be used directly from your code.

This property is equivalent to pressing END+UP ARROW, END+DOWN ARROW, END+LEFT ARROW, or END+RIGHT ARROW.

Applies to