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)
參數
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.
從開始 .NET Framework 4.6.NET Framework 4.6 , Bounds 當 app.config 檔案包含下列專案時,將會根據系統 DPI 設定來調整所指定的矩形:Starting 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
Public Sub PaintValue (value As Object, canvas As Graphics, rectangle As Rectangle)
參數
- 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.
備註
編輯器應在指定矩形的界限內繪製。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.
從開始 .NET Framework 4.6.NET Framework 4.6 , Bounds 當 app.config 檔案包含下列專案時,將會根據系統 DPI 設定來調整所指定的矩形:Starting 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>