Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / PopupEventArgs.cs / 1 / PopupEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System.Diagnostics;
using System;
using System.ComponentModel;
using System.Drawing;
using Microsoft.Win32;
///
///
/// This class contains the information a user needs to paint the ToolTip.
///
public class PopupEventArgs : CancelEventArgs
{
private IWin32Window associatedWindow;
private Size size;
private Control associatedControl;
private bool isBalloon;
///
///
/// Creates a new PopupEventArgs with the given parameters.
///
public PopupEventArgs(IWin32Window associatedWindow, Control associatedControl, bool isBalloon, Size size)
{
this.associatedWindow = associatedWindow;
this.size = size;
this.associatedControl = associatedControl;
this.isBalloon = isBalloon;
}
///
///
/// The Associated Window for which the tooltip is being painted.
///
public IWin32Window AssociatedWindow {
get {
return associatedWindow;
}
}
///
///
/// The control for which the tooltip is being painted.
///
public Control AssociatedControl {
get {
return associatedControl;
}
}
///
///
/// Whether the tooltip is Ballooned.
///
public bool IsBalloon {
get {
return isBalloon;
}
}
///
///
/// The rectangle outlining the area in which the painting should be done.
///
public Size ToolTipSize {
get {
return size;
}
set {
size = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FolderBrowserDialog.cs
- JsonFaultDetail.cs
- InvalidPrinterException.cs
- CFStream.cs
- CompositeScriptReferenceEventArgs.cs
- ComponentRenameEvent.cs
- ConfigurationStrings.cs
- RealizationDrawingContextWalker.cs
- ProfileProvider.cs
- HostVisual.cs
- Expander.cs
- CodeAttributeArgument.cs
- PageBuildProvider.cs
- CompositeScriptReferenceEventArgs.cs
- ComplexLine.cs
- UnmanagedMemoryStreamWrapper.cs
- FilePresentation.cs
- RoleManagerSection.cs
- ResourcesBuildProvider.cs
- GenerateHelper.cs
- PagedControl.cs
- Pen.cs
- SystemInformation.cs
- PageHandlerFactory.cs
- Util.cs
- XPathItem.cs
- BookmarkManager.cs
- _KerberosClient.cs
- CanonicalFontFamilyReference.cs
- DivideByZeroException.cs
- XmlReaderSettings.cs
- WmlLinkAdapter.cs
- FlatButtonAppearance.cs
- EndpointFilterProvider.cs
- ModelItemDictionary.cs
- DiscriminatorMap.cs
- Odbc32.cs
- CachedFontFamily.cs
- DefaultValueAttribute.cs
- SchemaImporterExtensionsSection.cs
- NameValueSectionHandler.cs
- LexicalChunk.cs
- GB18030Encoding.cs
- DocumentEventArgs.cs
- AlignmentXValidation.cs
- XmlDataLoader.cs
- HandleCollector.cs
- DesignerInterfaces.cs
- PointLight.cs
- ValueUtilsSmi.cs
- _ProxyRegBlob.cs
- ContentType.cs
- ErrorProvider.cs
- TranslateTransform3D.cs
- DrawingCollection.cs
- RijndaelManaged.cs
- BitmapFrameDecode.cs
- CompositeClientFormatter.cs
- AnnotationHelper.cs
- FacetValues.cs
- BatchParser.cs
- SqlUserDefinedAggregateAttribute.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DbResourceAllocator.cs
- TextDecorationLocationValidation.cs
- BCryptNative.cs
- MetabaseReader.cs
- FormViewUpdatedEventArgs.cs
- LostFocusEventManager.cs
- DataSvcMapFile.cs
- TraceSwitch.cs
- ExtensionWindowHeader.cs
- PointLight.cs
- IssuerInformation.cs
- CalculatedColumn.cs
- PeerCollaborationPermission.cs
- HelloOperationAsyncResult.cs
- FormsIdentity.cs
- ManagementObjectSearcher.cs
- XmlNamespaceManager.cs
- RequestCachePolicy.cs
- XmlDocument.cs
- WindowsPrincipal.cs
- SBCSCodePageEncoding.cs
- Message.cs
- PropertyEmitterBase.cs
- GroupBoxRenderer.cs
- indexingfiltermarshaler.cs
- ACE.cs
- DetailsViewCommandEventArgs.cs
- ComNativeDescriptor.cs
- XMLUtil.cs
- SymbolUsageManager.cs
- TextParentUndoUnit.cs
- _SecureChannel.cs
- ControlOperationInvoker.cs
- DesignerForm.cs
- StorageInfo.cs
- Int32RectConverter.cs
- Subtree.cs