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
- SHA1CryptoServiceProvider.cs
- CompositeActivityTypeDescriptor.cs
- PropertyCollection.cs
- TextServicesDisplayAttribute.cs
- TreeNodeMouseHoverEvent.cs
- QuaternionIndependentAnimationStorage.cs
- CustomWebEventKey.cs
- Dispatcher.cs
- PropertyEmitter.cs
- DataGridViewCellConverter.cs
- TargetPerspective.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Table.cs
- DataBindingCollectionEditor.cs
- LinkUtilities.cs
- ServiceModelStringsVersion1.cs
- PageAsyncTaskManager.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SessionPageStateSection.cs
- MediaEntryAttribute.cs
- XmlNodeList.cs
- DotAtomReader.cs
- RemoteX509AsymmetricSecurityKey.cs
- Vector3DValueSerializer.cs
- ButtonBaseAutomationPeer.cs
- URLMembershipCondition.cs
- Parameter.cs
- RequestSecurityTokenSerializer.cs
- WebPartTransformerCollection.cs
- ColorMatrix.cs
- MsmqTransportReceiveParameters.cs
- BuildProvider.cs
- WebScriptMetadataMessage.cs
- ConnectionConsumerAttribute.cs
- HtmlInputCheckBox.cs
- categoryentry.cs
- DebugController.cs
- SafeEventLogWriteHandle.cs
- PartialCachingAttribute.cs
- DataGridViewTextBoxColumn.cs
- EdmValidator.cs
- SimpleWebHandlerParser.cs
- StringConverter.cs
- MemoryStream.cs
- MessageEnumerator.cs
- XmlSchemaProviderAttribute.cs
- QilStrConcat.cs
- WindowsFormsSynchronizationContext.cs
- ArgIterator.cs
- BitmapCodecInfoInternal.cs
- SerializationInfoEnumerator.cs
- InstanceKeyCollisionException.cs
- DataSetMappper.cs
- EnumBuilder.cs
- OracleBoolean.cs
- CompilerError.cs
- XmlBufferReader.cs
- SystemUnicastIPAddressInformation.cs
- fixedPageContentExtractor.cs
- KeyValuePairs.cs
- XamlFrame.cs
- SoapCodeExporter.cs
- BeginGetFileNameFromUserRequest.cs
- SqlNotificationRequest.cs
- PanelContainerDesigner.cs
- ComponentDispatcher.cs
- DbDataRecord.cs
- DoubleLink.cs
- PerformanceCountersElement.cs
- ParameterToken.cs
- XmlSchemaAll.cs
- ValidationRule.cs
- OdbcConnectionString.cs
- TypeLibraryHelper.cs
- WrappedReader.cs
- FilterFactory.cs
- Logging.cs
- HostingPreferredMapPath.cs
- ValidationRule.cs
- InitializerFacet.cs
- TemplateBuilder.cs
- ShellProvider.cs
- ProfilePropertyMetadata.cs
- TransformerConfigurationWizardBase.cs
- DataRowIndexBuffer.cs
- UpDownEvent.cs
- PeerTransportCredentialType.cs
- WriterOutput.cs
- xmlsaver.cs
- SecurityKeyIdentifier.cs
- XmlNullResolver.cs
- MarshalByRefObject.cs
- RequestUriProcessor.cs
- ObjectNotFoundException.cs
- pingexception.cs
- BooleanKeyFrameCollection.cs
- TagPrefixCollection.cs
- TemplateInstanceAttribute.cs
- FolderLevelBuildProvider.cs
- Asn1IntegerConverter.cs