バージョン 24.2 (最新)

DesignMode プロパティ

デザインモードの場合はTrue、それ以外の場合はFalseを返します。
シンタックス
public override bool DesignMode {get;}
参照