StatusBarDrawItemEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 StatusBarDrawItemEventArgs 类的新实例。
重载
StatusBarDrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, StatusBarPanel)
初始化 StatusBarDrawItemEventArgs 类的新实例,而不指定 StatusBarPanel 的背景和前景色。
public:
StatusBarDrawItemEventArgs(System::Drawing::Graphics ^ g, System::Drawing::Font ^ font, System::Drawing::Rectangle r, int itemId, System::Windows::Forms::DrawItemState itemState, System::Windows::Forms::StatusBarPanel ^ panel);
public StatusBarDrawItemEventArgs (System.Drawing.Graphics g, System.Drawing.Font font, System.Drawing.Rectangle r, int itemId, System.Windows.Forms.DrawItemState itemState, System.Windows.Forms.StatusBarPanel panel);
new System.Windows.Forms.StatusBarDrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState * System.Windows.Forms.StatusBarPanel -> System.Windows.Forms.StatusBarDrawItemEventArgs
Public Sub New (g As Graphics, font As Font, r As Rectangle, itemId As Integer, itemState As DrawItemState, panel As StatusBarPanel)
参数
- g
- Graphics
用于绘制 Graphics 的 StatusBarPanel。
表示 Rectangle 的工作区的 StatusBarPanel。
- itemId
- Int32
StatusBar.StatusBarPanelCollection 控件的 StatusBar 中面板的从零开始的索引。
- itemState
- DrawItemState
表示有关 DrawItemState 的状态信息的 StatusBarPanel 值之一。
- panel
- StatusBarPanel
表示要描述的面板的 StatusBarPanel。
另请参阅
适用于
StatusBarDrawItemEventArgs(Graphics, Font, Rectangle, Int32, DrawItemState, StatusBarPanel, Color, Color)
使用为 StatusBarDrawItemEventArgs 指定的前景色和背景色,初始化 StatusBarPanel 的新实例。
public:
StatusBarDrawItemEventArgs(System::Drawing::Graphics ^ g, System::Drawing::Font ^ font, System::Drawing::Rectangle r, int itemId, System::Windows::Forms::DrawItemState itemState, System::Windows::Forms::StatusBarPanel ^ panel, System::Drawing::Color foreColor, System::Drawing::Color backColor);
public StatusBarDrawItemEventArgs (System.Drawing.Graphics g, System.Drawing.Font font, System.Drawing.Rectangle r, int itemId, System.Windows.Forms.DrawItemState itemState, System.Windows.Forms.StatusBarPanel panel, System.Drawing.Color foreColor, System.Drawing.Color backColor);
new System.Windows.Forms.StatusBarDrawItemEventArgs : System.Drawing.Graphics * System.Drawing.Font * System.Drawing.Rectangle * int * System.Windows.Forms.DrawItemState * System.Windows.Forms.StatusBarPanel * System.Drawing.Color * System.Drawing.Color -> System.Windows.Forms.StatusBarDrawItemEventArgs
Public Sub New (g As Graphics, font As Font, r As Rectangle, itemId As Integer, itemState As DrawItemState, panel As StatusBarPanel, foreColor As Color, backColor As Color)
参数
- g
- Graphics
用于绘制 Graphics 的 StatusBarPanel。
表示 Rectangle 的工作区的 StatusBarPanel。
- itemId
- Int32
StatusBar.StatusBarPanelCollection 控件的 StatusBar 中面板的从零开始的索引。
- itemState
- DrawItemState
表示有关 DrawItemState 的状态信息的 StatusBarPanel 值之一。
- panel
- StatusBarPanel
表示要描述的面板的 StatusBarPanel。