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
- MorphHelper.cs
- FileDialogPermission.cs
- TraceHandler.cs
- WebPartZoneCollection.cs
- AdRotatorDesigner.cs
- AlternateView.cs
- SqlSelectStatement.cs
- CodeParameterDeclarationExpression.cs
- SubstitutionDesigner.cs
- TraceHandler.cs
- _SpnDictionary.cs
- KeyValuePair.cs
- X509ClientCertificateCredentialsElement.cs
- SimpleTypeResolver.cs
- ErrorTableItemStyle.cs
- AuthorizationSection.cs
- SecurityVerifiedMessage.cs
- GPStream.cs
- AttributeInfo.cs
- ConfigErrorGlyph.cs
- PermissionAttributes.cs
- CollectionDataContractAttribute.cs
- StateMachineWorkflowDesigner.cs
- TreeViewItemAutomationPeer.cs
- AssemblyNameProxy.cs
- XmlSchemaSimpleContentExtension.cs
- DbConnectionPoolGroupProviderInfo.cs
- Rfc2898DeriveBytes.cs
- DataServiceClientException.cs
- Rotation3D.cs
- SafeNativeMethods.cs
- ListChunk.cs
- QueryAsyncResult.cs
- AdCreatedEventArgs.cs
- PartManifestEntry.cs
- XPathDocumentIterator.cs
- ThicknessKeyFrameCollection.cs
- HttpContext.cs
- LassoSelectionBehavior.cs
- HttpFileCollection.cs
- ScriptingProfileServiceSection.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AutoFocusStyle.xaml.cs
- WebPageTraceListener.cs
- DrawingImage.cs
- ZoomComboBox.cs
- IdentifierService.cs
- WizardPanel.cs
- Site.cs
- NumericUpDown.cs
- ComponentChangingEvent.cs
- IisTraceWebEventProvider.cs
- NativeMethods.cs
- XmlSchemaSequence.cs
- CombinedGeometry.cs
- _DisconnectOverlappedAsyncResult.cs
- DecoderFallback.cs
- HMACSHA1.cs
- AutomationProperty.cs
- NullableDecimalSumAggregationOperator.cs
- UnhandledExceptionEventArgs.cs
- GroupItem.cs
- CharUnicodeInfo.cs
- ObjectSecurity.cs
- GroupDescription.cs
- FeatureSupport.cs
- ViewGenResults.cs
- BlobPersonalizationState.cs
- MsmqActivation.cs
- DefaultTextStore.cs
- SourceCollection.cs
- ServiceActivationException.cs
- TrackingProfile.cs
- DataColumnChangeEvent.cs
- CompositeClientFormatter.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- COSERVERINFO.cs
- ConditionCollection.cs
- WSTrustDec2005.cs
- RoleExceptions.cs
- LoadWorkflowCommand.cs
- ArgIterator.cs
- OracleColumn.cs
- EmptyReadOnlyDictionaryInternal.cs
- ClientScriptManager.cs
- FragmentQuery.cs
- RepeaterItem.cs
- SvcMapFileLoader.cs
- CompiledRegexRunnerFactory.cs
- XmlDataLoader.cs
- ActivityBindForm.cs
- StyleBamlTreeBuilder.cs
- HitTestResult.cs
- QilCloneVisitor.cs
- Container.cs
- ThicknessAnimationBase.cs
- ProfileEventArgs.cs
- ReadOnlyTernaryTree.cs
- MenuEventArgs.cs