//------------------------------------------------------------------------------
// <copyright file="InvalidateEvent.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using Microsoft.Win32;
/// <include file='doc\InvalidateEvent.uex' path='docs/doc[@for="InvalidateEventArgs"]/*' />
/// <devdoc>
/// <para>
/// Provides data for the <see cref='System.Windows.Forms.Control.Invalidate'/>
/// event.
/// </para>
/// </devdoc>
public class InvalidateEventArgs : EventArgs {
/// <include file='doc\InvalidateEvent.uex' path='docs/doc[@for="InvalidateEventArgs.invalidRect"]/*' />
/// <devdoc>
/// Rectangle that bounds the window area which has been invalidated.
/// </devdoc>
private readonly Rectangle invalidRect;
/// <include file='doc\InvalidateEvent.uex' path='docs/doc[@for="InvalidateEventArgs.InvalidateEventArgs"]/*' />
/// <devdoc>
/// <para>
/// Initializes a new instance of the <see cref='System.Windows.Forms.InvalidateEventArgs'/>
/// class.
/// </para>
/// </devdoc>
public InvalidateEventArgs(Rectangle invalidRect) {
this.invalidRect = invalidRect;
}
/// <include file='doc\InvalidateEvent.uex' path='docs/doc[@for="InvalidateEventArgs.InvalidRect"]/*' />
/// <devdoc>
/// <para>
/// Gets a value
/// indicating the <see cref='System.Drawing.Rectangle'/>
/// that contains the invalidated window area.
/// </para>
/// </devdoc>
public Rectangle InvalidRect {
get {
return invalidRect;
}
}
}
}
|