Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DesignerForm.cs
- ClientOptions.cs
- HttpWrapper.cs
- ParameterBuilder.cs
- ImageSourceConverter.cs
- AssertValidation.cs
- StringArrayConverter.cs
- RegexWorker.cs
- TextDecoration.cs
- SHA384Managed.cs
- IntegerValidator.cs
- InvalidOleVariantTypeException.cs
- PlaceHolder.cs
- CssStyleCollection.cs
- CodeDefaultValueExpression.cs
- SchemaHelper.cs
- Attribute.cs
- Recipient.cs
- HostingPreferredMapPath.cs
- PageSetupDialog.cs
- SafeNativeMethods.cs
- ProxyWebPart.cs
- GuidelineCollection.cs
- GridEntryCollection.cs
- ConfigurationSettings.cs
- ImmutablePropertyDescriptorGridEntry.cs
- LicenseProviderAttribute.cs
- ProfileGroupSettingsCollection.cs
- MobileTextWriter.cs
- PerformanceCountersBase.cs
- SimpleWorkerRequest.cs
- XsdDataContractImporter.cs
- StylusPointCollection.cs
- MimeMapping.cs
- XmlDataSourceView.cs
- RSAOAEPKeyExchangeFormatter.cs
- ModelEditingScope.cs
- MessagingDescriptionAttribute.cs
- EntityCollection.cs
- EnumerableCollectionView.cs
- IntegerValidatorAttribute.cs
- Light.cs
- XmlUnspecifiedAttribute.cs
- TextTreeInsertElementUndoUnit.cs
- StylusButtonEventArgs.cs
- ImageField.cs
- DocumentReferenceCollection.cs
- EntityModelBuildProvider.cs
- RegisteredArrayDeclaration.cs
- TreeNodeCollectionEditor.cs
- ChannelSinkStacks.cs
- WebPartChrome.cs
- Rotation3DAnimation.cs
- PKCS1MaskGenerationMethod.cs
- XmlWrappingReader.cs
- SqlDataSourceQuery.cs
- BitmapEncoder.cs
- CompilationRelaxations.cs
- EntityCommandDefinition.cs
- PagesChangedEventArgs.cs
- CellIdBoolean.cs
- ModuleBuilderData.cs
- CodeDirectoryCompiler.cs
- ErrorRuntimeConfig.cs
- StickyNoteHelper.cs
- MediaContext.cs
- SettingsSavedEventArgs.cs
- UrlMappingsModule.cs
- CreateUserWizardStep.cs
- ResourcePermissionBaseEntry.cs
- IISMapPath.cs
- ParserOptions.cs
- XmlDeclaration.cs
- CookieHandler.cs
- TcpTransportElement.cs
- newitemfactory.cs
- invalidudtexception.cs
- EllipseGeometry.cs
- WhitespaceRuleLookup.cs
- SelectionPatternIdentifiers.cs
- FileNotFoundException.cs
- DataBoundControl.cs
- TypeUtil.cs
- XpsLiterals.cs
- MailAddressCollection.cs
- SerializationAttributes.cs
- ValidatorCompatibilityHelper.cs
- OleDbError.cs
- GlobalProxySelection.cs
- WorkflowHostingEndpoint.cs
- ModelItemKeyValuePair.cs
- IncrementalReadDecoders.cs
- StickyNoteAnnotations.cs
- AuthenticationManager.cs
- WinCategoryAttribute.cs
- PublishLicense.cs
- FindRequestContext.cs
- DesignerTransactionCloseEvent.cs
- DataTableExtensions.cs
- DataControlPagerLinkButton.cs