Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PrintPreviewControl.cs
- FixedTextView.cs
- OdbcException.cs
- WindowsUpDown.cs
- AdornedElementPlaceholder.cs
- Geometry.cs
- EpmContentDeSerializer.cs
- DBConnectionString.cs
- TextBoxBase.cs
- UrlMappingsModule.cs
- RtfControlWordInfo.cs
- FolderLevelBuildProvider.cs
- NetMsmqSecurityMode.cs
- DeriveBytes.cs
- KeyConstraint.cs
- BlurBitmapEffect.cs
- CodeSubDirectoriesCollection.cs
- OracleConnectionString.cs
- xmlsaver.cs
- SignerInfo.cs
- JapaneseLunisolarCalendar.cs
- SqlServices.cs
- Translator.cs
- CustomAttributeBuilder.cs
- SerialStream.cs
- ChtmlTextWriter.cs
- PropertyInformationCollection.cs
- WpfKnownMember.cs
- ListenDesigner.cs
- InfoCardKeyedHashAlgorithm.cs
- XmlObjectSerializerWriteContext.cs
- XmlProcessingInstruction.cs
- DateTimeConstantAttribute.cs
- XmlC14NWriter.cs
- EndpointAddressElementBase.cs
- SymbolEqualComparer.cs
- SmiContextFactory.cs
- HttpValueCollection.cs
- Math.cs
- ClientConvert.cs
- Command.cs
- WebPartConnectionsCancelVerb.cs
- PropertyStore.cs
- SqlBuilder.cs
- FrameworkElement.cs
- ExtenderProvidedPropertyAttribute.cs
- Model3DGroup.cs
- ExpressionEditorSheet.cs
- CompositeDispatchFormatter.cs
- RegionData.cs
- HostExecutionContextManager.cs
- WaitHandle.cs
- RenderContext.cs
- CodeEntryPointMethod.cs
- WebServicesSection.cs
- ConnectivityStatus.cs
- DynamicAttribute.cs
- AnnouncementService.cs
- WsatConfiguration.cs
- HostProtectionPermission.cs
- QueueProcessor.cs
- MenuItem.cs
- ToolStripScrollButton.cs
- CryptoStream.cs
- UInt16Storage.cs
- RegistrySecurity.cs
- Effect.cs
- FileDialog.cs
- xmlformatgeneratorstatics.cs
- DispatcherExceptionEventArgs.cs
- ServiceOperation.cs
- SqlDependency.cs
- Animatable.cs
- ReaderContextStackData.cs
- Internal.cs
- SamlAuthorizationDecisionClaimResource.cs
- XmlSchemaSimpleTypeRestriction.cs
- DataGridCell.cs
- TreeViewItemAutomationPeer.cs
- ActiveXSerializer.cs
- ResourceWriter.cs
- SocketPermission.cs
- XamlToRtfParser.cs
- SqlSelectStatement.cs
- PropertyPushdownHelper.cs
- CornerRadius.cs
- SmiContextFactory.cs
- ManipulationDelta.cs
- StyleHelper.cs
- TextTreeFixupNode.cs
- AssemblyAssociatedContentFileAttribute.cs
- ConsoleKeyInfo.cs
- HttpProtocolImporter.cs
- TiffBitmapEncoder.cs
- PeerCollaboration.cs
- SeekStoryboard.cs
- HttpModulesSection.cs
- LayoutTableCell.cs
- ListView.cs
- ConfigXmlSignificantWhitespace.cs