Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / PopupEventArgs.cs / 1305376 / 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
- DocumentPaginator.cs
- ListMarkerLine.cs
- Queue.cs
- OletxVolatileEnlistment.cs
- GridEntry.cs
- NameTable.cs
- Asn1IntegerConverter.cs
- MatcherBuilder.cs
- ToolBar.cs
- DelegateArgumentReference.cs
- BasicExpandProvider.cs
- Endpoint.cs
- SortDescriptionCollection.cs
- ToolStripSplitStackLayout.cs
- ModelPerspective.cs
- ApplicationException.cs
- Aggregates.cs
- PrinterUnitConvert.cs
- ListMarkerSourceInfo.cs
- TypeBuilderInstantiation.cs
- TransformerInfo.cs
- UIElementParagraph.cs
- COM2PictureConverter.cs
- ListBoxAutomationPeer.cs
- ConnectionManagementElementCollection.cs
- FormatSettings.cs
- ParameterCollection.cs
- SafeSerializationManager.cs
- SoapParser.cs
- CollectionView.cs
- ImageFormatConverter.cs
- HtmlObjectListAdapter.cs
- BasicHttpMessageSecurityElement.cs
- UiaCoreTypesApi.cs
- ProbeDuplex11AsyncResult.cs
- FixedPageAutomationPeer.cs
- DataControlCommands.cs
- CounterCreationDataConverter.cs
- SoapCodeExporter.cs
- WeakReference.cs
- WebPartEditorApplyVerb.cs
- EditorResources.cs
- mediaclock.cs
- CompareInfo.cs
- SchemaMapping.cs
- DurationConverter.cs
- EntityWithChangeTrackerStrategy.cs
- httpapplicationstate.cs
- FillBehavior.cs
- WindowPatternIdentifiers.cs
- IntSecurity.cs
- ReturnEventArgs.cs
- WebPartsPersonalization.cs
- MessageSmuggler.cs
- ReverseComparer.cs
- PersonalizableAttribute.cs
- Type.cs
- XmlDataSourceView.cs
- _SingleItemRequestCache.cs
- CompiledIdentityConstraint.cs
- SortedDictionary.cs
- CodeGroup.cs
- URLAttribute.cs
- LicenseException.cs
- Perspective.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FrameworkContentElement.cs
- PointAnimationUsingPath.cs
- IgnorePropertiesAttribute.cs
- FuncTypeConverter.cs
- SocketPermission.cs
- SystemIPv6InterfaceProperties.cs
- MaskDesignerDialog.cs
- CommandSet.cs
- EventQueueState.cs
- SourceSwitch.cs
- MarkerProperties.cs
- AtomContentProperty.cs
- DrawingCollection.cs
- IsolatedStorage.cs
- PopupControlService.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SmtpNegotiateAuthenticationModule.cs
- TaskFormBase.cs
- xdrvalidator.cs
- DataContractSerializerElement.cs
- DragDeltaEventArgs.cs
- DataBindingExpressionBuilder.cs
- IndexedEnumerable.cs
- ServicePointManager.cs
- SchemaLookupTable.cs
- CodeComment.cs
- NullableIntMinMaxAggregationOperator.cs
- GcSettings.cs
- VirtualizedCellInfoCollection.cs
- EntityStoreSchemaFilterEntry.cs
- StylusPointPropertyInfoDefaults.cs
- EntityDataSourceEntitySetNameItem.cs
- WorkBatch.cs
- SoapTypeAttribute.cs