Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / PopupEventArgs.cs / 1305376 / 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
- DataGridViewRowsAddedEventArgs.cs
- ComponentGuaranteesAttribute.cs
- DataGridTable.cs
- XmlAnyElementAttribute.cs
- CommonBehaviorsSection.cs
- RotateTransform.cs
- StyleHelper.cs
- UnhandledExceptionEventArgs.cs
- XmlAttributes.cs
- RIPEMD160Managed.cs
- CheckBox.cs
- Event.cs
- ConsoleEntryPoint.cs
- Logging.cs
- RealProxy.cs
- ListView.cs
- DBCommandBuilder.cs
- DataGridViewColumnConverter.cs
- DataGridViewCellParsingEventArgs.cs
- MailBnfHelper.cs
- StylusPointPropertyInfo.cs
- ValidationHelpers.cs
- CustomPopupPlacement.cs
- PrivateFontCollection.cs
- DesignSurfaceServiceContainer.cs
- PatternMatcher.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PropertyInformation.cs
- Compilation.cs
- DataGridView.cs
- SmiConnection.cs
- BindingUtils.cs
- InitializationEventAttribute.cs
- XPathBinder.cs
- TextComposition.cs
- XmlWriterSettings.cs
- XmlNamespaceMapping.cs
- InvalidCardException.cs
- BitmapMetadataBlob.cs
- PartialCachingAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FileUtil.cs
- PrintControllerWithStatusDialog.cs
- Positioning.cs
- SQLStringStorage.cs
- LoaderAllocator.cs
- DBCSCodePageEncoding.cs
- XmlSchemaAll.cs
- BaseServiceProvider.cs
- TextElementCollection.cs
- DWriteFactory.cs
- DefaultValueAttribute.cs
- PriorityChain.cs
- CustomCredentialPolicy.cs
- AttributeEmitter.cs
- BatchParser.cs
- PreviewPageInfo.cs
- XmlMapping.cs
- MD5CryptoServiceProvider.cs
- LocalTransaction.cs
- FileReader.cs
- SubordinateTransaction.cs
- XPathNavigatorKeyComparer.cs
- MD5CryptoServiceProvider.cs
- InvalidCastException.cs
- WebConfigurationFileMap.cs
- TreeNodeSelectionProcessor.cs
- ValidationErrorEventArgs.cs
- SoapException.cs
- GridViewCommandEventArgs.cs
- IncrementalCompileAnalyzer.cs
- PrinterResolution.cs
- DataStorage.cs
- CustomError.cs
- SelectionPattern.cs
- KeySpline.cs
- GroupBox.cs
- FaultDescriptionCollection.cs
- SessionStateContainer.cs
- TimelineGroup.cs
- _NetRes.cs
- ImageFormat.cs
- ToolStripContentPanel.cs
- ConfigurationSectionCollection.cs
- TableItemStyle.cs
- GridView.cs
- Perspective.cs
- XmlSchemaInclude.cs
- DBConcurrencyException.cs
- TrackBarRenderer.cs
- PagerSettings.cs
- FileNotFoundException.cs
- XmlSchemaCompilationSettings.cs
- SystemUnicastIPAddressInformation.cs
- OleDbMetaDataFactory.cs
- DesignerLinkAdapter.cs
- XmlNamespaceMapping.cs
- StatusBarAutomationPeer.cs
- DesignerDataStoredProcedure.cs
- XmlSchemaSimpleContentRestriction.cs