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.

適用於

另請參閱