PaintValueEventArgs 클래스

정의

PaintValue(Object, Graphics, Rectangle) 메서드에 대한 데이터를 제공합니다.

public ref class PaintValueEventArgs : EventArgs
public class PaintValueEventArgs : EventArgs
type PaintValueEventArgs = class
    inherit EventArgs
Public Class PaintValueEventArgs
Inherits EventArgs
상속
PaintValueEventArgs

예제

다음 코드 예제 메서드는 지정된 영역 내에서 개체 값의 표현을 그리는 데 필요한 데이터를 제공하는 값을 반환 PaintValueEventArgs 합니다.

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는 그리기를 수행해야 하는 개체와 Graphics 드로잉을 수행해야 하는 개체를 포함하여 Rectangle 지정된 개체의 값을 기반으로 영역 내에서 그리는 데 필요한 UITypeEditor 모든 정보를 제공합니다.

생성자

PaintValueEventArgs(ITypeDescriptorContext, Object, Graphics, Rectangle)

지정된 값을 사용하여 PaintValueEventArgs 클래스의 새 인스턴스를 초기화합니다.

속성

Bounds

칠해야 하는 영역을 나타내는 사각형을 가져옵니다.

Context

이 값 표현에 사용된 컨텍스트에 대한 추가 정보를 얻는 데 사용되는 ITypeDescriptorContext 개체를 가져옵니다.

Graphics

칠하는 데 사용할 Graphics 개체를 가져옵니다.

Value

칠할 값을 가져옵니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상