Control.IsHandleCreated Control.IsHandleCreated Control.IsHandleCreated Control.IsHandleCreated Property

定义

获取一个值,该值指示控件是否有与它关联的句柄。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.

注解

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

适用于

另请参阅