語言

DrawItemEventArgs 建構函式

定義

初始化 DrawItemEventArgs 類別的新執行個體。

多載

名稱 Description
DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState)

初始化指定控制項的新類別實例 DrawItemEventArgs ,並設定指定的字型、狀態、繪製的表面及繪製範圍。

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, Color, Color)

初始化該類別的新實例 DrawItemEventArgs ,針對指定控制項,並包含指定的字型、狀態、前景色、背景色、繪圖表面及繪製範圍。

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState)

來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs

初始化指定控制項的新類別實例 DrawItemEventArgs ,並設定指定的字型、狀態、繪製的表面及繪製範圍。

public:
 DrawItemEventArgs(System::Drawing::Graphics ^ graphics, System::Drawing::Font ^ font, System::Drawing::Rectangle rect, int index, System::Windows::Forms::DrawItemState state);
public DrawItemEventArgs(System.Drawing.Graphics graphics, System.Drawing.Font font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state);
public DrawItemEventArgs(System.Drawing.Graphics graphics, System.Drawing.Font? font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state);
new System.Windows.Forms.DrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState -> System.Windows.Forms.DrawItemEventArgs
Public Sub New (graphics As Graphics, font As Font, rect As Rectangle, index As Integer, state As DrawItemState)

參數

graphics
Graphics

畫 Graphics 作的表面。

font
Font

Font通常要使用的是家長控制Font權的財產。

rect
Rectangle

Rectangle內心的界限。

index
Int32

被 Control.ControlCollection 抽取項目的索引值。

state
DrawItemState

控制中心的 DrawItemState 資訊。

適用於

DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, Color, Color)

來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs
來源:
DrawItemEventArgs.cs

初始化該類別的新實例 DrawItemEventArgs ,針對指定控制項,並包含指定的字型、狀態、前景色、背景色、繪圖表面及繪製範圍。

public:
 DrawItemEventArgs(System::Drawing::Graphics ^ graphics, System::Drawing::Font ^ font, System::Drawing::Rectangle rect, int index, System::Windows::Forms::DrawItemState state, System::Drawing::Color foreColor, System::Drawing::Color backColor);
public DrawItemEventArgs(System.Drawing.Graphics graphics, System.Drawing.Font font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state, System.Drawing.Color foreColor, System.Drawing.Color backColor);
public DrawItemEventArgs(System.Drawing.Graphics graphics, System.Drawing.Font? font, System.Drawing.Rectangle rect, int index, System.Windows.Forms.DrawItemState state, System.Drawing.Color foreColor, System.Drawing.Color backColor);
new System.Windows.Forms.DrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState * System.Drawing.Color * System.Drawing.Color -> System.Windows.Forms.DrawItemEventArgs
Public Sub New (graphics As Graphics, font As Font, rect As Rectangle, index As Integer, state As DrawItemState, foreColor As Color, backColor As Color)

參數

graphics
Graphics

畫 Graphics 作的表面。

font
Font

Font通常要使用的是家長控制Font權的財產。

rect
Rectangle

Rectangle內心的界限。

index
Int32

被 Control.ControlCollection 抽取項目的索引值。

state
DrawItemState

控制中心的 DrawItemState 資訊。

foreColor
Color

Color前景用來繪製控制權。

backColor
Color

用來繪製控制權的背景 Color 。

適用於