This documentation is archived and is not being maintained.

UITestControl.Container Property

Gets or sets the container of this UITestControl.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public virtual UITestControl Container { get; set; }

The Container is not necessarily the immediate parent, but the Container can be any ancestor in the UI test control hierarchy.