Share via


XmlMappedRange.Top Property (2007 System)

Gets the distance, in points, from the top of row 1 to the top edge of 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 Top As Object
'Usage
Dim instance As XmlMappedRange 
Dim value As Object 

value = instance.Top
[BrowsableAttribute(false)]
public Object Top { get; }
[BrowsableAttribute(false)]
public:
property Object^ Top {
    Object^ get ();
}
public function get Top () : Object

Property Value

Type: System.Object
The distance, in points, from the top of row 1 to the top edge of the XmlMappedRange control.

Remarks

The value is returned as a double.

Examples

The following code example uses the Left and Top properties to display the distance from the left edge of column A to the left edge of an XmlMappedRange, and the distance from the top of row 1 to the top edge of the XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.

Private Sub DisplayLeftAndTop()
    MsgBox("The left border of CustomerLastNameCell is at " & _
        Me.CustomerLastNameCell.Left & " and the top is at " & _
        Me.CustomerLastNameCell.Top & ".")
End Sub
private void DisplayLeftAndTop()
{
    MessageBox.Show("The left border of CustomerLastNameCell is at " +
    this.CustomerLastNameCell.Left + " and the top is at " +
    this.CustomerLastNameCell.Top + ".");
}

.NET Framework Security

See Also

Reference

XmlMappedRange Class

XmlMappedRange Members

Microsoft.Office.Tools.Excel Namespace