Share via


ViewEvent.Paint フィールド

定義

デザイン サーフェイス上のコントロールの描画に対してビュー イベントが生成されたことを示します。

public: static initonly System::Web::UI::Design::ViewEvent ^ Paint;
public static readonly System.Web.UI.Design.ViewEvent Paint;
 staticval mutable Paint : System.Web.UI.Design.ViewEvent
Public Shared ReadOnly Paint As ViewEvent 

フィールド値

注釈

ViewEventHandlerデリゲート メソッドは、 プロパティをEventType静的ViewEventフィールドと比較して、イベントを発生させたアクションの種類を決定します。 ViewEventオブジェクトは、デザイン サーフェイス上のコントロールのペイント イベントを示す のと同じですPaint

クラスは ControlDesigner 、既定 ViewEventHandler のデリゲートを提供します。 イベントの種類が の場合、デリゲートは Paintメソッドを OnPaint 呼び出します。 クラスから派生するクラスは、 ControlDesigner メソッドを OnPaint オーバーライドして、デザイン時に領域のクリック イベントを処理します。

適用対象

こちらもご覧ください