Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- MULTI_QI.cs
- XpsFontSubsetter.cs
- DataColumnMappingCollection.cs
- UIElementParaClient.cs
- SqlUserDefinedTypeAttribute.cs
- ProfileServiceManager.cs
- RegionData.cs
- InstanceData.cs
- ObjectListTitleAttribute.cs
- DoubleLinkList.cs
- _UriTypeConverter.cs
- CodeTypeReferenceCollection.cs
- ToolStripDropDownItem.cs
- Permission.cs
- MimeMapping.cs
- SerializationInfo.cs
- QueryCacheManager.cs
- SmiEventSink_Default.cs
- webeventbuffer.cs
- ServerIdentity.cs
- ListItemCollection.cs
- XmlResolver.cs
- MailWriter.cs
- ChtmlLinkAdapter.cs
- XmlDictionaryReaderQuotasElement.cs
- DrawToolTipEventArgs.cs
- ConditionalBranch.cs
- DataListCommandEventArgs.cs
- Substitution.cs
- UriTemplateLiteralQueryValue.cs
- externdll.cs
- CloseCollectionAsyncResult.cs
- Transform3DGroup.cs
- RootBuilder.cs
- UIntPtr.cs
- PipelineModuleStepContainer.cs
- WeakHashtable.cs
- Lease.cs
- FastPropertyAccessor.cs
- StateMachineExecutionState.cs
- XmlAttributes.cs
- DbTransaction.cs
- GridItemProviderWrapper.cs
- FontFamily.cs
- EntityDataSourceStatementEditor.cs
- NavigationProperty.cs
- IIS7WorkerRequest.cs
- IndependentAnimationStorage.cs
- CompiledXpathExpr.cs
- InfoCardMasterKey.cs
- UserMapPath.cs
- TextSelectionHighlightLayer.cs
- CheckableControlBaseAdapter.cs
- URIFormatException.cs
- MetadataExchangeBindings.cs
- StaticTextPointer.cs
- MailFileEditor.cs
- DisplayMemberTemplateSelector.cs
- Matrix.cs
- CustomErrorCollection.cs
- CatalogZone.cs
- SafeFileMapViewHandle.cs
- OutputScope.cs
- MSHTMLHostUtil.cs
- ProjectionPlanCompiler.cs
- ProjectionNode.cs
- X509CertificateChain.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TypeListConverter.cs
- Expressions.cs
- EntryWrittenEventArgs.cs
- RuntimeConfigurationRecord.cs
- MissingManifestResourceException.cs
- safelinkcollection.cs
- PreviewPageInfo.cs
- SettingsBindableAttribute.cs
- AspNetSynchronizationContext.cs
- TextEffect.cs
- Claim.cs
- cache.cs
- oledbmetadatacolumnnames.cs
- SafeEventLogReadHandle.cs
- ServiceParser.cs
- BaseParser.cs
- DataGridCellClipboardEventArgs.cs
- VerifyHashRequest.cs
- XmlDictionary.cs
- SafeRightsManagementQueryHandle.cs
- CheckBox.cs
- EllipseGeometry.cs
- ListQueryResults.cs
- TTSEngineTypes.cs
- GlobalEventManager.cs
- InputReportEventArgs.cs
- AsyncPostBackTrigger.cs
- Condition.cs
- AssemblyCollection.cs
- SqlDataSourceCustomCommandPanel.cs
- MemberDescriptor.cs
- CategoriesDocument.cs