Udostępnij za pośrednictwem


ListBox.Parent Property (2007 System)

Gets the parent object for the ListBox.

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

Syntax

'Declaration
Public ReadOnly Property Parent As Object
'Usage
Dim instance As ListBox 
Dim value As Object 

value = instance.Parent
public Object Parent { get; }
public:
property Object^ Parent {
    Object^ get ();
}
public function get Parent () : Object

Property Value

Type: System.Object
The parent object for the ListBox.

Remarks

The parent of a ListBox is a container control that connects the ListBox with the document, not the Range that contains the ListBox.

The parent of a ListBox can only be accessed as an Object.

Examples

For a code example that demonstrates how to use this property, see Button.Parent. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent Parent property.

.NET Framework Security

See Also

Reference

ListBox Class

ListBox Members

Microsoft.Office.Tools.Excel.Controls Namespace