DrawItemEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 ,並設定指定的字型、狀態、繪製的表面及繪製範圍。
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)
參數
- index
- Int32
被 Control.ControlCollection 抽取項目的索引值。
- state
- DrawItemState
控制中心的 DrawItemState 資訊。
適用於
DrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, Color, Color)
初始化該類別的新實例 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)
參數
- index
- Int32
被 Control.ControlCollection 抽取項目的索引值。
- state
- DrawItemState
控制中心的 DrawItemState 資訊。