XmlMappedRange.Parent Property (2007 System)
Gets a Worksheet that represents the worksheet containing 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 Parent As Object
'Usage
Dim instance As XmlMappedRange
Dim value As Object
value = instance.Parent
[BrowsableAttribute(false)]
public Object Parent { get; }
[BrowsableAttribute(false)]
public:
property Object^ Parent {
Object^ get ();
}
public function get Parent () : Object
Property Value
Type: System.Object
A Worksheet that represents the worksheet containing the XmlMappedRange control.
Examples
The following code example uses the Parent property to display the name of the parent Worksheet of an XmlMappedRange. This code example assumes that the current worksheet contains an XmlMappedRange named CustomerLastNameCell.
Private Sub DisplayParentName()
Dim sheet1 As Excel.Worksheet = _
CType(Me.CustomerLastNameCell.Parent, Excel.Worksheet)
MsgBox("The XmlMappedRange is in worksheet: " & sheet1.Name)
End Sub
private void DisplayParentName()
{
Excel.Worksheet sheet1 = (Excel.Worksheet)this.CustomerLastNameCell.Parent;
MessageBox.Show("The XmlMappedRange is in worksheet: " + sheet1.Name);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.