Control.GetTopLevel 方法

定义

确定控件是否是顶级控件。Determines if the control is a top-level control.

protected:
 bool GetTopLevel();
protected bool GetTopLevel ();
member this.GetTopLevel : unit -> bool
Protected Function GetTopLevel () As Boolean

返回

如果该控件为顶级控件,则为 true;否则为 falsetrue if the control is a top-level control; otherwise, false.

适用于

另请参阅