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
- PopupRootAutomationPeer.cs
- Timer.cs
- Add.cs
- ClientTarget.cs
- SplashScreenNativeMethods.cs
- TriggerCollection.cs
- SoapIncludeAttribute.cs
- PaginationProgressEventArgs.cs
- CacheSection.cs
- DictionarySectionHandler.cs
- RepeatButtonAutomationPeer.cs
- XmlCharType.cs
- GridItem.cs
- Hex.cs
- BamlLocalizer.cs
- DataGridComponentEditor.cs
- dtdvalidator.cs
- OdbcError.cs
- ObjectItemAttributeAssemblyLoader.cs
- SupportingTokenSecurityTokenResolver.cs
- CodeIndexerExpression.cs
- UpdateTracker.cs
- DrawListViewSubItemEventArgs.cs
- ListBindingConverter.cs
- XmlDataSource.cs
- SparseMemoryStream.cs
- AsymmetricCryptoHandle.cs
- SafeRegistryHandle.cs
- MappingModelBuildProvider.cs
- ParameterEditorUserControl.cs
- UnicodeEncoding.cs
- SafeNativeMethodsCLR.cs
- ModelItemCollectionImpl.cs
- Binding.cs
- IndentedWriter.cs
- XmlTextReaderImpl.cs
- InProcStateClientManager.cs
- BasePattern.cs
- NamespaceCollection.cs
- DataServiceEntityAttribute.cs
- ExecutionEngineException.cs
- HttpCacheVary.cs
- TrustExchangeException.cs
- BoundColumn.cs
- WasHttpHandlersInstallComponent.cs
- SerializationEventsCache.cs
- MethodSet.cs
- TrustManagerPromptUI.cs
- CodeDomDecompiler.cs
- WebPartHeaderCloseVerb.cs
- ResourceContainerWrapper.cs
- SqlDataSourceSelectingEventArgs.cs
- SafeUserTokenHandle.cs
- Attributes.cs
- PrintController.cs
- LayoutSettings.cs
- WindowsTooltip.cs
- SqlRecordBuffer.cs
- ShutDownListener.cs
- IpcClientChannel.cs
- TextEditorThreadLocalStore.cs
- ArithmeticException.cs
- ButtonBaseAdapter.cs
- ClientSettingsProvider.cs
- HostedTransportConfigurationBase.cs
- CapabilitiesAssignment.cs
- Utils.cs
- MainMenu.cs
- OdbcCommand.cs
- TypeForwardedToAttribute.cs
- OdbcParameterCollection.cs
- CultureMapper.cs
- TextClipboardData.cs
- WebControlsSection.cs
- XmlSchemaGroupRef.cs
- TextTabProperties.cs
- JoinTreeSlot.cs
- HandlerBase.cs
- codemethodreferenceexpression.cs
- QueryPageSettingsEventArgs.cs
- BaseDataBoundControl.cs
- SecurityTokenContainer.cs
- EditorZoneBase.cs
- ValueTypeFixupInfo.cs
- XmlSchemaObject.cs
- GridViewSelectEventArgs.cs
- XmlIlGenerator.cs
- ChannelTokenTypeConverter.cs
- XsdDateTime.cs
- DetailsViewInsertEventArgs.cs
- AudioStateChangedEventArgs.cs
- DecoratedNameAttribute.cs
- XmlNavigatorStack.cs
- TextEditorContextMenu.cs
- DebugHandleTracker.cs
- WebInvokeAttribute.cs
- PropertyManager.cs
- Dictionary.cs
- BinaryConverter.cs
- CanonicalFormWriter.cs