Language

UITypeEditor.PaintValue メソッド

定義

オブジェクトの値の表現を描画します。

オーバーロード

名前 説明
PaintValue(PaintValueEventArgs)

指定した PaintValueEventArgsを使用して、オブジェクトの値の表現を描画します。

PaintValue(Object, Graphics, Rectangle)

指定したオブジェクトの値の表現を、指定したキャンバスに描画します。

PaintValue(PaintValueEventArgs)

ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs

指定した 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 。

注釈

エディターは、指定した四角形の境界内に描画する必要があります。 この四角形は、値の表現を描画するプロパティ ウィンドウの領域を示します。

.NET Framework 4.6 以降では、app.config ファイルに次のエントリが含まれている場合、Bounds で指定された四角形のサイズはシステム DPI 設定に基づいて変更されます。

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

こちらもご覧ください

適用対象

PaintValue(Object, Graphics, Rectangle)

ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs
ソース:
UITypeEditor.cs

指定したオブジェクトの値の表現を、指定したキャンバスに描画します。

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);
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

この型エディターの値が表示されるオブジェクト。

canvas
Graphics

オブジェクトの値の表現を描画する描画キャンバス。

rectangle
Rectangle

値を描画する境界内の Rectangle 。

注釈

エディターは、指定した四角形の境界内に描画する必要があります。 この四角形は、値の表現を描画するプロパティ ウィンドウの領域を示します。

.NET Framework 4.6 以降では、app.config ファイルに次のエントリが含まれている場合、Bounds で指定された四角形のサイズはシステム DPI 設定に基づいて変更されます。

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

適用対象