Share via


XmlMappedRange.End Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property End As XmlMappedRange._EndType
'Usage
Dim instance As XmlMappedRange 
Dim value As XmlMappedRange._EndType 

value = instance.End
[BrowsableAttribute(false)]
public XmlMappedRange._EndType End { get; }
[BrowsableAttribute(false)]
public:
property XmlMappedRange._EndType^ End {
    XmlMappedRange._EndType^ get ();
}
public function get End () : XmlMappedRange._EndType

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 Visual Studio Tools for Office 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 Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace