DrawItemEventArgs Конструкторы
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Инициализирует новый экземпляр класса DrawItemEventArgs.
Перегрузки
| 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)
Параметры
- font
- Font
Объект Font, который необходимо использовать и который, как правило, является свойством Font родительского элемента управления.
- 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)
Параметры
- font
- Font
Объект Font, который необходимо использовать и который, как правило, является свойством Font родительского элемента управления.
- index
- Int32
Значение индекса Control.ControlCollection для изображаемого элемента.
- state
- DrawItemState
Сведения DrawItemState элемента управления.