Sdílet prostřednictvím


DrawItemEventArgs Konstruktory

Definice

Inicializuje novou instanci DrawItemEventArgs třídy.

Přetížení

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

Inicializuje novou instanci DrawItemEventArgs třídy pro zadaný ovládací prvek se zadaným písmem, stavem, povrchem pro kreslení a hranicemi, které se mají nakreslit v rámci.

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

Inicializuje novou instanci DrawItemEventArgs třídy pro zadaný ovládací prvek se zadaným písmem, stavem, barvou popředí, barvou pozadí, povrchem pro kreslení a hranicemi, které se mají nakreslit.

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

Inicializuje novou instanci DrawItemEventArgs třídy pro zadaný ovládací prvek se zadaným písmem, stavem, povrchem pro kreslení a hranicemi, které se mají nakreslit v rámci.

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)

Parametry

graphics
Graphics

Povrch Graphics , na který se má kreslit.

font
Font

Použití Font , obvykle vlastnosti nadřazeného ovládacího prvku Font .

rect
Rectangle

Hranice Rectangle , které se mají nakreslit.

index
Int32

Hodnota Control.ControlCollection indexu položky, která se nakreslí.

state
DrawItemState

Informace o ovládacím prvku DrawItemState .

Platí pro

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

Inicializuje novou instanci DrawItemEventArgs třídy pro zadaný ovládací prvek se zadaným písmem, stavem, barvou popředí, barvou pozadí, povrchem pro kreslení a hranicemi, které se mají nakreslit.

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)

Parametry

graphics
Graphics

Povrch Graphics , na který se má kreslit.

font
Font

Použití Font , obvykle vlastnosti nadřazeného ovládacího prvku Font .

rect
Rectangle

Hranice Rectangle , které se mají nakreslit.

index
Int32

Hodnota Control.ControlCollection indexu položky, která se nakreslí.

state
DrawItemState

Informace o ovládacím prvku DrawItemState .

foreColor
Color

Color Popředí pro kreslení ovládacího prvku.

backColor
Color

Pozadí Color pro kreslení ovládacího prvku.

Platí pro