UITypeEditor.PaintValue 方法

定義

繪製物件值的表示。Paints a representation of the value of an object.

多載

PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs 來繪製物件值的表示。Paints a representation of the value of an object using the specified PaintValueEventArgs.

PaintValue(Object, Graphics, Rectangle)

將指定物件的表示值繪製到指定的畫布上。Paints a representation of the value of the specified object to the specified canvas.

PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs 來繪製物件值的表示。Paints a representation of the value of an object using the specified PaintValueEventArgs.

public:
 virtual void PaintValue(System::Drawing::Design::PaintValueEventArgs ^ e);
public virtual void PaintValue (System.Drawing.Design.PaintValueEventArgs e);
abstract member PaintValue : System.Drawing.Design.PaintValueEventArgs -> unit
override this.PaintValue : System.Drawing.Design.PaintValueEventArgs -> unit
Public Overridable Sub PaintValue (e As PaintValueEventArgs)

參數

e
PaintValueEventArgs

PaintValueEventArgs,表示要繪製什麼與繪製位置。A PaintValueEventArgs that indicates what to paint and where to paint it.

備註

編輯器應在指定矩形的界限內繪製。Editors should paint within the boundaries of the specified rectangle. 這個矩形表示屬性視窗的區域, 以繪製中的值標記法。This rectangle indicates the area of the Properties window to draw a representation of the value within.

從開始Bounds , 當 app.config 檔案包含下列專案時, 所指定的矩形會根據系統 DPI 設定來調整大小: .NET Framework 4.6.NET Framework 4.6Starting with the .NET Framework 4.6.NET Framework 4.6, the rectangle specified by Bounds will be resized based on the system DPI setting when the app.config file contains the following entry:

<appSettings>  
  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />  
</appSettings>  
  

另請參閱

PaintValue(Object, Graphics, Rectangle)

將指定物件的表示值繪製到指定的畫布上。Paints a representation of the value of the specified object to the specified canvas.

public:
 void PaintValue(System::Object ^ value, System::Drawing::Graphics ^ canvas, System::Drawing::Rectangle rectangle);
public void PaintValue (object value, System.Drawing.Graphics canvas, System.Drawing.Rectangle rectangle);
member this.PaintValue : obj * System.Drawing.Graphics * System.Drawing.Rectangle -> unit

參數

value
Object

這個型別編輯器會顯示其值的物件。The object whose value this type editor will display.

canvas
Graphics

要繪製物件值之表示的畫布。A drawing canvas on which to paint the representation of the object's value.

rectangle
Rectangle

要在其界限內繪製值的 RectangleA Rectangle within whose boundaries to paint the value.

備註

編輯器應在指定矩形的界限內繪製。Editors should paint within the boundaries of the specified rectangle. 這個矩形表示屬性視窗的區域, 以繪製中的值標記法。This rectangle indicates the area of the Properties window to draw a representation of the value within.

從開始Bounds , 當 app.config 檔案包含下列專案時, 所指定的矩形會根據系統 DPI 設定來調整大小: .NET Framework 4.6.NET Framework 4.6Starting with the .NET Framework 4.6.NET Framework 4.6, the rectangle specified by Bounds will be resized based on the system DPI setting when the app.config file contains the following entry:

<appSettings>  
  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />  
</appSettings>  
  

適用於