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
- TimelineGroup.cs
- FixedTextBuilder.cs
- MeasureData.cs
- FormViewInsertEventArgs.cs
- EventArgs.cs
- PageVisual.cs
- ObjectDataSourceEventArgs.cs
- ToRequest.cs
- UnsafeMethods.cs
- SystemBrushes.cs
- WebPartVerbsEventArgs.cs
- ColumnWidthChangedEvent.cs
- TemplateManager.cs
- HMACSHA256.cs
- DbDeleteCommandTree.cs
- LoggedException.cs
- TargetException.cs
- DataGridViewImageCell.cs
- HtmlEmptyTagControlBuilder.cs
- HtmlUtf8RawTextWriter.cs
- Int32AnimationBase.cs
- ListControl.cs
- FolderBrowserDialog.cs
- TextEditorSelection.cs
- CalculatedColumn.cs
- WorkflowMessageEventArgs.cs
- StrongNameIdentityPermission.cs
- InheritanceAttribute.cs
- ZipIOCentralDirectoryBlock.cs
- SourceSwitch.cs
- PersonalizableAttribute.cs
- OutOfMemoryException.cs
- Token.cs
- CellNormalizer.cs
- DrawingContextWalker.cs
- AnimationException.cs
- _IPv6Address.cs
- CachedCompositeFamily.cs
- CodeNamespaceImportCollection.cs
- LinqDataSourceInsertEventArgs.cs
- FixedBufferAttribute.cs
- VectorCollectionValueSerializer.cs
- TraceEventCache.cs
- WindowsUpDown.cs
- CircleHotSpot.cs
- CqlGenerator.cs
- ExtensionElement.cs
- WebPartConnectVerb.cs
- NativeMethods.cs
- CodeRegionDirective.cs
- RawStylusInputReport.cs
- TreeNodeClickEventArgs.cs
- LinkUtilities.cs
- EditorZoneBase.cs
- Rect3D.cs
- StateMachineWorkflowDesigner.cs
- ListViewSelectEventArgs.cs
- ReadOnlyDictionary.cs
- oledbconnectionstring.cs
- OdbcEnvironmentHandle.cs
- ColumnHeader.cs
- Stylus.cs
- GcHandle.cs
- EventLogPermission.cs
- FrameworkRichTextComposition.cs
- X509Certificate.cs
- StubHelpers.cs
- ValidationVisibilityAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- MessageDecoder.cs
- RootAction.cs
- DefaultAuthorizationContext.cs
- VSWCFServiceContractGenerator.cs
- HtmlElementCollection.cs
- Vector3DConverter.cs
- Stopwatch.cs
- FontFamily.cs
- SqlOuterApplyReducer.cs
- IMembershipProvider.cs
- Slider.cs
- WSSecureConversationDec2005.cs
- remotingproxy.cs
- StatusBarDrawItemEvent.cs
- SqlTriggerAttribute.cs
- DiscoveryReference.cs
- StrokeIntersection.cs
- _KerberosClient.cs
- ObjectStateManager.cs
- SimpleHandlerBuildProvider.cs
- ElementMarkupObject.cs
- ServiceHostFactory.cs
- SettingsBindableAttribute.cs
- IndexerNameAttribute.cs
- ClientSponsor.cs
- UnsafeNativeMethods.cs
- ModelService.cs
- ParentUndoUnit.cs
- Calendar.cs
- TextTreeTextElementNode.cs
- UmAlQuraCalendar.cs