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

생성자

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

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

속성

Name Description
Bounds

그리기를 수행해야 하는 영역을 나타내는 사각형을 가져옵니다.

Context

이 값이 ITypeDescriptorContext 표시되는 컨텍스트에 대한 추가 정보를 얻는 데 사용할 인터페이스를 가져옵니다.

Graphics

그리기를 Graphics 수행할 개체를 가져옵니다.

Value

그릴 값을 가져옵니다.

메서드

Name Description
Equals(Object)

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

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

기본 해시 함수로 사용됩니다.

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상