バージョン 24.2 (最新)

IsInEditMode プロパティ

項目が編集モードかどうかを示す値を取得します。
シンタックス
public bool IsInEditMode {get;}
参照