Compartilhar via


MaskedTextBox.Parent Property

Definition

Gets the parent object for the MaskedTextBox.

public:
 property System::Object ^ Parent { System::Object ^ get(); };
public object Parent { get; }
member this.Parent : obj
Public ReadOnly Property Parent As Object

Property Value

The parent object for the MaskedTextBox.

Examples

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

Remarks

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

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

Applies to