MarshalByValueComponent.DesignMode MarshalByValueComponent.DesignMode MarshalByValueComponent.DesignMode MarshalByValueComponent.DesignMode Property

定义

获取指示组件当前是否处于设计模式的值。Gets a value indicating whether the component is currently in design mode.

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

属性值

如果组件处于设计模式,则为 true;否则为 falsetrue if the component is in design mode; otherwise, false.

注解

如果该组件没有站点, 此方法将始终返回falseIf the component does not have a site, this method always returns false.

适用于

另请参阅