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
- BaseDataList.cs
- UnsafeNativeMethods.cs
- ADRoleFactory.cs
- ServiceMetadataPublishingElement.cs
- ProfileSettingsCollection.cs
- AttributeTable.cs
- RelatedView.cs
- VBCodeProvider.cs
- WebConfigurationHost.cs
- SqlDataSourceStatusEventArgs.cs
- WindowsGraphics2.cs
- GridViewColumn.cs
- GraphicsContext.cs
- Int32CollectionConverter.cs
- SiteMap.cs
- PostBackTrigger.cs
- EntityExpressionVisitor.cs
- Vector.cs
- HttpHostedTransportConfiguration.cs
- WrappedIUnknown.cs
- ReadOnlyObservableCollection.cs
- IFlowDocumentViewer.cs
- TypeToStringValueConverter.cs
- FieldNameLookup.cs
- TriggerActionCollection.cs
- DataGridClipboardHelper.cs
- ServicePointManager.cs
- nulltextcontainer.cs
- RelAssertionDirectKeyIdentifierClause.cs
- sqlnorm.cs
- RelationshipEnd.cs
- VScrollProperties.cs
- XmlLanguageConverter.cs
- TcpAppDomainProtocolHandler.cs
- SByteConverter.cs
- PageBreakRecord.cs
- DataControlReference.cs
- ProcessRequestArgs.cs
- PrinterResolution.cs
- UIntPtr.cs
- IArgumentProvider.cs
- ConvertTextFrag.cs
- HMACMD5.cs
- ParameterElement.cs
- SoapFault.cs
- Cursors.cs
- HttpConfigurationSystem.cs
- webbrowsersite.cs
- XmlParserContext.cs
- MobileComponentEditorPage.cs
- NullReferenceException.cs
- RowToFieldTransformer.cs
- WebBrowserProgressChangedEventHandler.cs
- DnsPermission.cs
- AstTree.cs
- StringValidatorAttribute.cs
- IndicCharClassifier.cs
- ContainerControlDesigner.cs
- ImageMap.cs
- ClientSettingsProvider.cs
- ExpressionBuilderCollection.cs
- DesignerExtenders.cs
- ObjectDataProvider.cs
- SRDisplayNameAttribute.cs
- DoubleAnimation.cs
- AssemblyCacheEntry.cs
- Int16.cs
- RowCache.cs
- InstanceCollisionException.cs
- FixedTextSelectionProcessor.cs
- ParseHttpDate.cs
- DataListItemCollection.cs
- StorageEntityTypeMapping.cs
- TextCompositionManager.cs
- EdmMember.cs
- RuleElement.cs
- SByte.cs
- RenderData.cs
- PageBuildProvider.cs
- ColorConvertedBitmap.cs
- ErrorRuntimeConfig.cs
- ValidationErrorCollection.cs
- TextTreeFixupNode.cs
- GridView.cs
- HwndStylusInputProvider.cs
- DebugView.cs
- WebSysDefaultValueAttribute.cs
- MembershipSection.cs
- DataGridViewRowCancelEventArgs.cs
- TextModifierScope.cs
- comcontractssection.cs
- PolyBezierSegment.cs
- SortExpressionBuilder.cs
- ButtonChrome.cs
- NoneExcludedImageIndexConverter.cs
- LiteralLink.cs
- DataGridHeaderBorder.cs
- EntityKey.cs
- PropertyEmitterBase.cs
- PolyLineSegment.cs