Control.IsHandleCreated 属性

定义

获取一个值,该值指示控件是否有与它关联的句柄。Gets a value indicating whether the control has a handle associated with it.

public:
 property bool IsHandleCreated { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsHandleCreated { get; }
member this.IsHandleCreated : bool
Public ReadOnly Property IsHandleCreated As Boolean

属性值

如果已经为控件分配了句柄,则为 true;否则为 falsetrue if a handle has been assigned to the control; otherwise, false.

属性

注解

使用 IsHandleCreated 属性来确定是否调用了 CreateHandleUse the IsHandleCreated property to determine whether CreateHandle has been called.

适用于

另请参阅