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
- IPipelineRuntime.cs
- DynamicActionMessageFilter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ListViewUpdatedEventArgs.cs
- NavigationHelper.cs
- RouteParser.cs
- LocatorPartList.cs
- AlternationConverter.cs
- ImageAnimator.cs
- ProtocolElement.cs
- PackageStore.cs
- GregorianCalendarHelper.cs
- COM2ExtendedUITypeEditor.cs
- PropertyPathConverter.cs
- WebPartTracker.cs
- XomlCompilerParameters.cs
- DbProviderManifest.cs
- DateTimeConverter2.cs
- Grant.cs
- Soap.cs
- SystemIPInterfaceStatistics.cs
- FontDialog.cs
- LineSegment.cs
- WmlLabelAdapter.cs
- StaticContext.cs
- XslAstAnalyzer.cs
- WeakReference.cs
- CoreSwitches.cs
- StreamAsIStream.cs
- EntityTemplateUserControl.cs
- DataGridViewBindingCompleteEventArgs.cs
- EndEvent.cs
- TextEditorTyping.cs
- ExpressionParser.cs
- ControlIdConverter.cs
- Semaphore.cs
- Subtree.cs
- TextEditorSpelling.cs
- EditingScopeUndoUnit.cs
- ApplicationManager.cs
- InstanceContext.cs
- DbMetaDataCollectionNames.cs
- ObjectHandle.cs
- SimpleHandlerFactory.cs
- TableLayout.cs
- OutputScope.cs
- MarginsConverter.cs
- BitmapDownload.cs
- ValueQuery.cs
- controlskin.cs
- Rotation3DAnimation.cs
- CodeBinaryOperatorExpression.cs
- ErrorTableItemStyle.cs
- XpsFilter.cs
- TextTreeTextNode.cs
- DataGridColumnCollection.cs
- NumericPagerField.cs
- RadioButtonFlatAdapter.cs
- EncryptedType.cs
- XPathDocumentIterator.cs
- DelegateInArgument.cs
- ProgressChangedEventArgs.cs
- NoClickablePointException.cs
- AutomationElement.cs
- WorkflowQueue.cs
- TextFormatterHost.cs
- JsonUriDataContract.cs
- CodeGen.cs
- Package.cs
- XamlReader.cs
- IsolatedStorageException.cs
- ConnectionStringSettings.cs
- BuildProviderCollection.cs
- WebPermission.cs
- CollectionChange.cs
- CodeGenerator.cs
- ProfilePropertySettings.cs
- DesignerLinkAdapter.cs
- NamedObject.cs
- XmlSchemaObjectCollection.cs
- UpDownBaseDesigner.cs
- KnownColorTable.cs
- WindowsGrip.cs
- Canvas.cs
- ValidationErrorCollection.cs
- Matrix.cs
- PenCursorManager.cs
- LazyLoadBehavior.cs
- OdbcReferenceCollection.cs
- BuildManagerHost.cs
- Accessors.cs
- RawStylusActions.cs
- FixedSOMImage.cs
- CodeGeneratorAttribute.cs
- IDispatchConstantAttribute.cs
- ProfileInfo.cs
- SafeTimerHandle.cs
- CollectionDataContract.cs
- ScriptingJsonSerializationSection.cs
- ActivityScheduledRecord.cs