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
- StorageAssociationSetMapping.cs
- TreeNodeStyle.cs
- NetStream.cs
- StructuralType.cs
- DispatcherHookEventArgs.cs
- ButtonBaseAutomationPeer.cs
- SizeValueSerializer.cs
- Rect3DConverter.cs
- AutomationIdentifier.cs
- Internal.cs
- XmlSchemaFacet.cs
- XmlAnyElementAttribute.cs
- PropertyGridEditorPart.cs
- CompositeFontInfo.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SessionState.cs
- BulletChrome.cs
- ExpressionWriter.cs
- XhtmlBasicCommandAdapter.cs
- InstanceData.cs
- FrameAutomationPeer.cs
- XPathBinder.cs
- StringValidatorAttribute.cs
- RelatedView.cs
- FixedDocument.cs
- ManualResetEvent.cs
- MessageAction.cs
- ExtendedPropertyInfo.cs
- SqlNode.cs
- EntityType.cs
- PrincipalPermission.cs
- MonitorWrapper.cs
- HostingEnvironment.cs
- NamespaceExpr.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- sitestring.cs
- ProgressiveCrcCalculatingStream.cs
- MenuItemStyleCollection.cs
- FreezableDefaultValueFactory.cs
- ToggleButtonAutomationPeer.cs
- KeyFrames.cs
- CustomValidator.cs
- SendSecurityHeaderElement.cs
- LocalizedNameDescriptionPair.cs
- CheckBoxBaseAdapter.cs
- UnsafeMethods.cs
- MSG.cs
- DataColumn.cs
- TypeBinaryExpression.cs
- RoutingExtension.cs
- QuadraticBezierSegment.cs
- FontStyleConverter.cs
- ArgumentNullException.cs
- ListViewDeletedEventArgs.cs
- TextFormatterContext.cs
- PeekCompletedEventArgs.cs
- ObjectToIdCache.cs
- VirtualizingStackPanel.cs
- EventOpcode.cs
- securitycriticaldata.cs
- DesignerVerbCollection.cs
- ColorAnimationUsingKeyFrames.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Error.cs
- StrongNameMembershipCondition.cs
- CodePageEncoding.cs
- DNS.cs
- _NegotiateClient.cs
- GPRECT.cs
- ServiceOperationParameter.cs
- TabletDeviceInfo.cs
- FlagsAttribute.cs
- Semaphore.cs
- DataGridColumnFloatingHeader.cs
- hresults.cs
- HashSetDebugView.cs
- XmlName.cs
- GcSettings.cs
- DriveInfo.cs
- LineVisual.cs
- WorkflowTransactionService.cs
- VerificationAttribute.cs
- HttpWebRequest.cs
- codemethodreferenceexpression.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- StorageRoot.cs
- ImageInfo.cs
- EndCreateSecurityTokenRequest.cs
- SiteMapDataSourceView.cs
- SmiRequestExecutor.cs
- ColumnWidthChangingEvent.cs
- GroupItem.cs
- ComboBoxItem.cs
- MatrixTransform.cs
- CFStream.cs
- DrawingImage.cs
- ObservableDictionary.cs
- CustomValidator.cs
- ListBoxChrome.cs
- RadialGradientBrush.cs