|
//------------------------------------------------------------------------------
// <copyright file="StatusBarDrawItemEvent.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.Drawing;
using Microsoft.Win32;
/// <include file='doc\StatusBarDrawItemEvent.uex' path='docs/doc[@for="StatusBarDrawItemEventArgs"]/*' />
/// <devdoc>
/// <para>
/// Provides data for the <see cref='System.Windows.Forms.StatusBar.OnDrawItem'/>
/// event.
/// </para>
/// </devdoc>
public class StatusBarDrawItemEventArgs : DrawItemEventArgs {
readonly StatusBarPanel panel;
/// <include file='doc\StatusBarDrawItemEvent.uex' path='docs/doc[@for="StatusBarDrawItemEventArgs.StatusBarDrawItemEventArgs"]/*' />
/// <devdoc>
/// <para>
/// Initializes a new instance of the <see cref='System.Windows.Forms.StatusBarDrawItemEventArgs'/>
/// class.
/// </para>
/// </devdoc>
public StatusBarDrawItemEventArgs(System.Drawing.Graphics g, Font font, Rectangle r, int itemId,
DrawItemState itemState, StatusBarPanel panel) : base(g, font, r, itemId, itemState) {
this.panel = panel;
}
/// <include file='doc\StatusBarDrawItemEvent.uex' path='docs/doc[@for="StatusBarDrawItemEventArgs.StatusBarDrawItemEventArgs1"]/*' />
/// <devdoc>
/// <para>
/// Initializes a new instance of the <see cref='System.Windows.Forms.StatusBarDrawItemEventArgs'/>
/// class using the Forecolor and Backcolor.
/// </para>
/// </devdoc>
public StatusBarDrawItemEventArgs(System.Drawing.Graphics g, Font font, Rectangle r, int itemId,
DrawItemState itemState, StatusBarPanel panel, Color foreColor, Color backColor) : base(g, font, r, itemId, itemState, foreColor, backColor) {
this.panel = panel;
}
/// <include file='doc\StatusBarDrawItemEvent.uex' path='docs/doc[@for="StatusBarDrawItemEventArgs.Panel"]/*' />
/// <devdoc>
/// <para>
/// Specifies the <see cref='System.Windows.Forms.StatusBarPanel'/>
/// to
/// draw.
/// </para>
/// </devdoc>
public StatusBarPanel Panel {
get {
return panel;
}
}
}
}
|