PaintValueEventArgs PaintValueEventArgs PaintValueEventArgs PaintValueEventArgs Class

定義

PaintValue(Object, Graphics, Rectangle) メソッドのデータを提供します。Provides data for the PaintValue(Object, Graphics, Rectangle) method.

public ref class PaintValueEventArgs : EventArgs
public class PaintValueEventArgs : EventArgs
type PaintValueEventArgs = class
    inherit EventArgs
Public Class PaintValueEventArgs
Inherits EventArgs
継承
PaintValueEventArgsPaintValueEventArgsPaintValueEventArgsPaintValueEventArgs

次のコード例のメソッドを返します。 をPaintValueEventArgs特定の領域内のオブジェクトの値の表現を描画するために必要なデータを提供します。The following code example method returns a PaintValueEventArgs that provides the data needed to paint a representation of the value of an object within a given area:

PaintValueEventArgs^ CreatePaintValueEventArgs( System::ComponentModel::ITypeDescriptorContext^ context, Object^ value, Graphics^ graphics, Rectangle bounds )
{
   PaintValueEventArgs^ e = gcnew PaintValueEventArgs( context, value, graphics, bounds );
   // The context of the paint value event         e.Context
   // The Object representing the value to paint   e.Value
   // The graphics to use to paint                 e.Graphics
   // The rectangle in which to paint              e.Bounds
   return e;
}
public PaintValueEventArgs CreatePaintValueEventArgs(System.ComponentModel.ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds)
{
    PaintValueEventArgs e = new PaintValueEventArgs(context, value, graphics, bounds);
    // The context of the paint value event         e.Context
    // The object representing the value to paint   e.Value
    // The graphics to use to paint                 e.Graphics
    // The rectangle in which to paint              e.Bounds                       
    return e;
}
Public Function CreatePaintValueEventArgs(ByVal context As System.ComponentModel.ITypeDescriptorContext, ByVal value As Object, ByVal graphics As Graphics, ByVal bounds As Rectangle) As PaintValueEventArgs
    Dim e As New PaintValueEventArgs(context, value, graphics, bounds)
    ' The context of the paint value event         e.Context
    ' The object representing the value to paint   e.Value
    ' The graphics to use to paint                 e.Graphics
    ' The rectangle in which to paint              e.Bounds                       
    Return e
End Function

注釈

PaintValueEventArgs 必要なすべての情報を提供します、UITypeEditor指定したオブジェクトの値に基づいて、領域内の描画になど、Rectangleで描画を行う必要あるとGraphicsオブジェクトを描画を実行する必要があります。PaintValueEventArgs provides all the information needed for a UITypeEditor to paint within an area based on the value of the specified object, including the Rectangle in which the drawing should be done and the Graphics object with which the drawing should be done.

コンストラクター

PaintValueEventArgs(ITypeDescriptorContext, Object, Graphics, Rectangle) PaintValueEventArgs(ITypeDescriptorContext, Object, Graphics, Rectangle) PaintValueEventArgs(ITypeDescriptorContext, Object, Graphics, Rectangle) PaintValueEventArgs(ITypeDescriptorContext, Object, Graphics, Rectangle)

指定した値を使用して、PaintValueEventArgs クラスの新しいインスタンスを初期化します。Initializes a new instance of the PaintValueEventArgs class using the specified values.

プロパティ

Bounds Bounds Bounds Bounds

描画領域を示す四角形を取得します。Gets the rectangle that indicates the area in which the painting should be done.

Context Context Context Context

値が表示されるコンテキストに関する追加情報を取得するために使用する ITypeDescriptorContext インターフェイスを取得します。Gets the ITypeDescriptorContext interface to be used to gain additional information about the context this value appears in.

Graphics Graphics Graphics Graphics

描画に使用する Graphics オブジェクトを取得します。Gets the Graphics object with which painting should be done.

Value Value Value Value

描画する値を取得します。Gets the value to paint.

メソッド

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)

セキュリティ

NamedPermissionSet
システム リソースへのフル アクセス。for full access to system resources. 値を要求: LinkDemandInheritanceDemandします。Demand values: LinkDemand, InheritanceDemand. 関連付けられた状態。Associated state:

適用対象