LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
TopLevelControl Property
See Also 
Leadtools.Medical3D Namespace > Medical3DControl Class : TopLevelControl Property



Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost System.Windows.Forms.Form that the control is contained in.

Syntax

Visual Basic (Declaration) 
<SRDescriptionAttribute("Retrieves the top-level control that contains this control.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
<SRCategoryAttribute("Behavior")>
<BrowsableAttribute(False)>
Public ReadOnly Property TopLevelControl As Control
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim value As Control
 
value = instance.TopLevelControl
C# 
[SRDescriptionAttribute("Retrieves the top-level control that contains this control.")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("Behavior")]
[BrowsableAttribute(false)]
public Control TopLevelControl {get;}
C++/CLI 
[SRDescriptionAttribute("Retrieves the top-level control that contains this control.")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
[SRCategoryAttribute("Behavior")]
[BrowsableAttribute(false)]
public:
property Control^ TopLevelControl {
   Control^ get();
}

Property Value

The System.Windows.Forms.Control that represents the top-level control that contains the current control.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Medical3D requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features