Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaParticle.cs
- WebExceptionStatus.cs
- WindowsPrincipal.cs
- FrameworkElementFactoryMarkupObject.cs
- SafeNativeMethodsCLR.cs
- RichTextBoxDesigner.cs
- Style.cs
- PopupEventArgs.cs
- ElapsedEventArgs.cs
- CodeAttachEventStatement.cs
- ModelUIElement3D.cs
- Native.cs
- Constraint.cs
- XmlNamespaceManager.cs
- EventLog.cs
- PerformanceCounter.cs
- PeerContact.cs
- ReferencedAssembly.cs
- PersonalizationStateInfoCollection.cs
- ScrollEvent.cs
- DeriveBytes.cs
- RegisteredDisposeScript.cs
- XmlTextReaderImpl.cs
- DefaultAsyncDataDispatcher.cs
- BoundPropertyEntry.cs
- SecurityManager.cs
- GeneralTransform3D.cs
- ListMarkerSourceInfo.cs
- RegexCapture.cs
- XmlDeclaration.cs
- DocumentSequence.cs
- CodeDomDesignerLoader.cs
- MembershipUser.cs
- DataFormat.cs
- HttpClientCertificate.cs
- ColorMatrix.cs
- Trace.cs
- ObjectQuery_EntitySqlExtensions.cs
- LoopExpression.cs
- XmlAnyAttributeAttribute.cs
- PassportAuthentication.cs
- NopReturnReader.cs
- RawStylusSystemGestureInputReport.cs
- SqlDataAdapter.cs
- Comparer.cs
- EventToken.cs
- StateItem.cs
- EntitySetBaseCollection.cs
- CommandLineParser.cs
- WindowsSysHeader.cs
- DesignerActionUI.cs
- PointConverter.cs
- StorageAssociationSetMapping.cs
- XmlILIndex.cs
- MemoryRecordBuffer.cs
- TextCompositionEventArgs.cs
- DecoderReplacementFallback.cs
- BulletedList.cs
- securitycriticaldataformultiplegetandset.cs
- TrackPointCollection.cs
- ToolStripItemImageRenderEventArgs.cs
- WindowsListView.cs
- VScrollBar.cs
- CookielessHelper.cs
- TextTrailingCharacterEllipsis.cs
- ArrayElementGridEntry.cs
- BinaryObjectInfo.cs
- DateTimeParse.cs
- ProfileManager.cs
- SocketInformation.cs
- HandlerBase.cs
- PolicyValidator.cs
- ToolStripDesignerAvailabilityAttribute.cs
- storepermissionattribute.cs
- AuthStoreRoleProvider.cs
- ObjectSecurity.cs
- ToolStripMenuItemCodeDomSerializer.cs
- DocumentScope.cs
- XPathDocument.cs
- FixUp.cs
- EntityDataReader.cs
- DragEvent.cs
- DataServiceQueryProvider.cs
- x509store.cs
- GridProviderWrapper.cs
- SerialStream.cs
- BitmapEffectGroup.cs
- TokenCreationParameter.cs
- CompressedStack.cs
- BamlBinaryReader.cs
- SubpageParagraph.cs
- Table.cs
- SmiEventStream.cs
- MsmqTransportSecurity.cs
- HandleCollector.cs
- SqlDataSourceTableQuery.cs
- Journal.cs
- QuaternionRotation3D.cs
- AudioFormatConverter.cs
- MdiWindowListItemConverter.cs