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
- XmlSchemaSimpleTypeUnion.cs
- EncodingNLS.cs
- SID.cs
- PhonemeEventArgs.cs
- ThreadExceptionDialog.cs
- ReversePositionQuery.cs
- _NTAuthentication.cs
- SQLString.cs
- ClientType.cs
- M3DUtil.cs
- GenericUriParser.cs
- SortQuery.cs
- UnsafePeerToPeerMethods.cs
- TabControlEvent.cs
- EventHandlerService.cs
- RegexWriter.cs
- TextCollapsingProperties.cs
- SizeKeyFrameCollection.cs
- PeerTransportSecuritySettings.cs
- ImplicitInputBrush.cs
- XmlParserContext.cs
- DataTemplate.cs
- figurelength.cs
- ContextMenuStripGroupCollection.cs
- COM2ExtendedTypeConverter.cs
- SelectionEditingBehavior.cs
- DataGridViewEditingControlShowingEventArgs.cs
- AsymmetricAlgorithm.cs
- ContractNamespaceAttribute.cs
- InstanceDescriptor.cs
- DocumentXPathNavigator.cs
- NamespaceList.cs
- TextRunProperties.cs
- AutoResetEvent.cs
- WebPartEditVerb.cs
- InputScopeAttribute.cs
- SvcFileManager.cs
- UnsafeNativeMethods.cs
- DataControlButton.cs
- ProgressChangedEventArgs.cs
- SemanticValue.cs
- _ChunkParse.cs
- TemplatePropertyEntry.cs
- MethodBody.cs
- TrackingLocation.cs
- GenericTypeParameterBuilder.cs
- TypeUtils.cs
- ForEachAction.cs
- IODescriptionAttribute.cs
- FontUnitConverter.cs
- ThrowHelper.cs
- TransformerInfoCollection.cs
- AuthenticationService.cs
- TypeConverterValueSerializer.cs
- ConfigXmlSignificantWhitespace.cs
- TabPage.cs
- TemplateBindingExpressionConverter.cs
- ImageList.cs
- QueryContext.cs
- CreateUserErrorEventArgs.cs
- TypeContext.cs
- Typeface.cs
- BaseProcessProtocolHandler.cs
- WebPartsPersonalization.cs
- TableChangeProcessor.cs
- FloatUtil.cs
- RectIndependentAnimationStorage.cs
- ArcSegment.cs
- StrokeCollection2.cs
- ImageMapEventArgs.cs
- TreeView.cs
- HotSpotCollection.cs
- ModelItemKeyValuePair.cs
- ComponentChangedEvent.cs
- MsmqActivation.cs
- BinaryObjectReader.cs
- ChangeNode.cs
- FormattedText.cs
- PtsPage.cs
- ContextMenuAutomationPeer.cs
- LinearQuaternionKeyFrame.cs
- SafeSecurityHandles.cs
- TypeInformation.cs
- _Rfc2616CacheValidators.cs
- Condition.cs
- TextUtf8RawTextWriter.cs
- ConstrainedDataObject.cs
- MSAAWinEventWrap.cs
- EntityWithChangeTrackerStrategy.cs
- DataGridColumnHeader.cs
- StyleCollection.cs
- PagesSection.cs
- Vertex.cs
- AddInControllerImpl.cs
- DesigntimeLicenseContext.cs
- _OSSOCK.cs
- EntityDataSourceChangedEventArgs.cs
- AffineTransform3D.cs
- Soap12ProtocolReflector.cs
- XmlChildNodes.cs