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
- ContextActivityUtils.cs
- EmptyQuery.cs
- AnimationTimeline.cs
- Propagator.JoinPropagator.cs
- PropertyDescriptorComparer.cs
- ArgumentNullException.cs
- SpotLight.cs
- ArrayExtension.cs
- ExclusiveCanonicalizationTransform.cs
- BuildProvider.cs
- ProcessThreadDesigner.cs
- RowBinding.cs
- SqlTypesSchemaImporter.cs
- RepeaterItemEventArgs.cs
- Translator.cs
- Deflater.cs
- XmlHierarchicalDataSourceView.cs
- Metafile.cs
- WmlImageAdapter.cs
- EntityKey.cs
- DeclaredTypeElement.cs
- PathHelper.cs
- XmlAggregates.cs
- PermissionAttributes.cs
- ZoomPercentageConverter.cs
- WinInetCache.cs
- EncoderNLS.cs
- Attachment.cs
- Rect3D.cs
- NullEntityWrapper.cs
- EventListener.cs
- IpcServerChannel.cs
- HandoffBehavior.cs
- SoapEnumAttribute.cs
- PrintEvent.cs
- SmtpLoginAuthenticationModule.cs
- controlskin.cs
- XslCompiledTransform.cs
- HtmlListAdapter.cs
- CreateUserWizard.cs
- SqlPersonalizationProvider.cs
- EventLogHandle.cs
- XMLUtil.cs
- ToolStripDropDown.cs
- UIElementIsland.cs
- WebBrowsableAttribute.cs
- FormViewDeletedEventArgs.cs
- UnSafeCharBuffer.cs
- AssemblyBuilderData.cs
- PartialCachingAttribute.cs
- PointKeyFrameCollection.cs
- FormatStringEditor.cs
- Rights.cs
- HtmlInputText.cs
- Font.cs
- HyperLinkField.cs
- TransformerConfigurationWizardBase.cs
- StorageEntityTypeMapping.cs
- StrokeDescriptor.cs
- TextEmbeddedObject.cs
- FlagsAttribute.cs
- EditorZoneBase.cs
- PageThemeParser.cs
- DropShadowEffect.cs
- DataGridColumnHeaderCollection.cs
- AutomationPatternInfo.cs
- TextRunCache.cs
- DataGridViewSortCompareEventArgs.cs
- CompositeActivityValidator.cs
- MenuBase.cs
- AssemblyHash.cs
- SmiTypedGetterSetter.cs
- Wizard.cs
- DockEditor.cs
- IfJoinedCondition.cs
- ScrollChrome.cs
- URIFormatException.cs
- UnsupportedPolicyOptionsException.cs
- ToolStripItemEventArgs.cs
- TimeoutException.cs
- AsynchronousChannel.cs
- IChannel.cs
- BitmapPalette.cs
- SynchronizedInputProviderWrapper.cs
- DataBinding.cs
- InstanceLockLostException.cs
- Single.cs
- ItemChangedEventArgs.cs
- LogPolicy.cs
- BooleanSwitch.cs
- _SSPISessionCache.cs
- WebPartEditVerb.cs
- OdbcInfoMessageEvent.cs
- TriggerBase.cs
- RoutedEventArgs.cs
- BitmapEffectInput.cs
- ButtonField.cs
- FilterableData.cs
- SoapAttributes.cs
- ScriptingAuthenticationServiceSection.cs