Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpRequestWrapper.cs
- RSAOAEPKeyExchangeFormatter.cs
- _DomainName.cs
- dataobject.cs
- DBSqlParserTable.cs
- ListViewHitTestInfo.cs
- Queue.cs
- ValidateNames.cs
- ViewStateException.cs
- DesignerTransactionCloseEvent.cs
- ObjectContext.cs
- SourceLineInfo.cs
- SecureStringHasher.cs
- AudioLevelUpdatedEventArgs.cs
- Hash.cs
- HttpRequestContext.cs
- ConfigurationException.cs
- XmlArrayItemAttribute.cs
- Descriptor.cs
- LabelAutomationPeer.cs
- SqlConnectionHelper.cs
- SqlCrossApplyToCrossJoin.cs
- RadioButtonFlatAdapter.cs
- CommandTreeTypeHelper.cs
- SizeAnimationBase.cs
- DataContractJsonSerializerOperationFormatter.cs
- XmlSchemaAttributeGroupRef.cs
- SectionInput.cs
- StringArrayConverter.cs
- Triangle.cs
- TableLayoutPanel.cs
- WeakReferenceList.cs
- EncryptedReference.cs
- EdmItemError.cs
- GlobalDataBindingHandler.cs
- InternalConfigEventArgs.cs
- ImplicitInputBrush.cs
- TextFormatterImp.cs
- TemplateEditingService.cs
- _NetRes.cs
- LinqDataSourceUpdateEventArgs.cs
- SecurityUtils.cs
- Mouse.cs
- CodeTypeDeclarationCollection.cs
- RequestBringIntoViewEventArgs.cs
- EpmContentDeSerializerBase.cs
- XmlSchemaAnnotated.cs
- Accessible.cs
- ExecutionContext.cs
- Configuration.cs
- ObjectDataSource.cs
- SafeHandle.cs
- EncoderParameters.cs
- AccessDataSource.cs
- ProxyGenerator.cs
- WorkflowServiceNamespace.cs
- DynamicMethod.cs
- ExpanderAutomationPeer.cs
- ChannelManager.cs
- SqlStatistics.cs
- Image.cs
- ReachDocumentSequenceSerializer.cs
- BrowserInteropHelper.cs
- D3DImage.cs
- AutoCompleteStringCollection.cs
- EventBookmark.cs
- QilVisitor.cs
- ModifierKeysConverter.cs
- DiscoveryClient.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SiteMapNodeItem.cs
- AdapterSwitches.cs
- XmlAttributeProperties.cs
- HttpModulesSection.cs
- ArrayHelper.cs
- SQLInt16Storage.cs
- OutgoingWebRequestContext.cs
- Bits.cs
- TypeConverterAttribute.cs
- VSWCFServiceContractGenerator.cs
- Compiler.cs
- _NetRes.cs
- DirectoryNotFoundException.cs
- RSAPKCS1SignatureDeformatter.cs
- RawKeyboardInputReport.cs
- TextTreeInsertUndoUnit.cs
- HtmlElement.cs
- ModelTreeEnumerator.cs
- ExpanderAutomationPeer.cs
- TextStore.cs
- IsolatedStorage.cs
- MissingFieldException.cs
- ParallelTimeline.cs
- PersonalizationStateQuery.cs
- SAPICategories.cs
- NextPreviousPagerField.cs
- HeaderedItemsControl.cs
- UniformGrid.cs
- XPathSelfQuery.cs
- GeneralTransformCollection.cs