Condividi tramite


XmlMappedRange.End Property

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

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

Syntax

'Declaration
ReadOnly Property End As XmlMappedRange_EndType
XmlMappedRange_EndType End { get; }

Property Value

Type: Microsoft.Office.Tools.Excel.XmlMappedRange_EndType
A Range that represents the cell at the end of the region that contains the XmlMappedRange control.

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.

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 Sub SelectEnd()
    Me.CustomerLastNameCell.End(Excel.XlDirection.xlToRight).Select()
End Sub
private void SelectEnd()
{
    this.CustomerLastNameCell.End[Excel.XlDirection.xlToRight].Select();
}

.NET Framework Security

See Also

Reference

XmlMappedRange Interface

Microsoft.Office.Tools.Excel Namespace