PaintValueEventArgs Sınıf

Tanım

yöntemi için PaintValue(Object, Graphics, Rectangle) veri sağlar.

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

Örnekler

Aşağıdaki kod örneği yöntemi, belirli bir PaintValueEventArgs alan içindeki bir nesnenin değerinin gösterimini boyamak için gereken verileri sağlayan bir döndürür:

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

Açıklamalar

PaintValueEventArgs , belirtilen nesnenin değerine göre bir alanın içinde boyanması için UITypeEditor gereken tüm bilgileri sağlar; çizimin Rectangle hangisinde yapılması gerektiği ve çizimin Graphics yapılması gereken nesne de dahil olmak üzere.

Oluşturucular

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

Belirtilen değerleri kullanarak sınıfın PaintValueEventArgs yeni bir örneğini başlatır.

Özellikler

Name Description
Bounds

Tablonun yapılması gereken alanı gösteren dikdörtgeni alır.

Context

Bu değerin ITypeDescriptorContext göründüğü bağlam hakkında ek bilgi edinmek için kullanılacak arabirimi alır.

Graphics

Boyamanın Graphics yapılması gereken nesneyi alır.

Value

Boyanacak değeri alır.

Yöntemler

Name Description
Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.

(Devralındığı yer: Object)
GetHashCode()

Varsayılan karma işlevi işlevi görür.

(Devralındığı yer: Object)
GetType()

Geçerli örneğin Type alır.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli Objectbasit bir kopyasını oluşturur.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden bir dize döndürür.

(Devralındığı yer: Object)

Şunlara uygulanır