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
- IDQuery.cs
- Bitmap.cs
- StateManagedCollection.cs
- RuntimeComponentFilter.cs
- CodeIdentifiers.cs
- SafeNativeMethods.cs
- BufferAllocator.cs
- X509ChainElement.cs
- SrgsToken.cs
- CacheAxisQuery.cs
- SnapshotChangeTrackingStrategy.cs
- CodeDirectoryCompiler.cs
- QueryContext.cs
- SafeMILHandleMemoryPressure.cs
- SchemaImporterExtensionElementCollection.cs
- ConfigurationValidatorBase.cs
- RepeatButton.cs
- DeviceSpecificChoiceCollection.cs
- LoadWorkflowByKeyAsyncResult.cs
- InvalidAsynchronousStateException.cs
- NotEqual.cs
- XPathNavigatorKeyComparer.cs
- TemplateBamlRecordReader.cs
- SymmetricKeyWrap.cs
- URLMembershipCondition.cs
- CardSpaceException.cs
- PaintValueEventArgs.cs
- AttachmentCollection.cs
- RegisteredScript.cs
- ColumnMapProcessor.cs
- ExecutionContext.cs
- BamlLocalizabilityResolver.cs
- GrammarBuilderBase.cs
- TextDecorationUnitValidation.cs
- SmiEventStream.cs
- SystemBrushes.cs
- GZipStream.cs
- SymbolEqualComparer.cs
- AspNetSynchronizationContext.cs
- ConnectionsZoneDesigner.cs
- FontFamilyIdentifier.cs
- Crypto.cs
- CompilerError.cs
- basecomparevalidator.cs
- BaseDataList.cs
- CodeIdentifiers.cs
- FixedSOMContainer.cs
- HttpModuleAction.cs
- SchemaNames.cs
- PasswordTextNavigator.cs
- ClientProtocol.cs
- DataGridViewControlCollection.cs
- Missing.cs
- FilterQueryOptionExpression.cs
- GlyphRunDrawing.cs
- FactoryGenerator.cs
- SymmetricKeyWrap.cs
- BindingContext.cs
- TypefaceMap.cs
- RelationshipConstraintValidator.cs
- BaseCodeDomTreeGenerator.cs
- AdornerPresentationContext.cs
- SqlServices.cs
- CardSpaceShim.cs
- ExtensionWindowResizeGrip.cs
- DecimalAnimationBase.cs
- BufferBuilder.cs
- ScriptingRoleServiceSection.cs
- ReferentialConstraint.cs
- QueryAccessibilityHelpEvent.cs
- StrokeDescriptor.cs
- NameSpaceEvent.cs
- RectangleF.cs
- MulticastOption.cs
- ToolStripButton.cs
- OdbcInfoMessageEvent.cs
- ViewDesigner.cs
- AppDomainUnloadedException.cs
- PtsCache.cs
- SqlDataSourceCommandEventArgs.cs
- TableCell.cs
- SqlDependencyUtils.cs
- ErrorFormatter.cs
- MonthCalendar.cs
- NativeCompoundFileAPIs.cs
- ParameterModifier.cs
- Light.cs
- ProcessModelInfo.cs
- BinaryExpressionHelper.cs
- DBDataPermission.cs
- StatusStrip.cs
- MeshGeometry3D.cs
- TypeConverter.cs
- GraphicsContainer.cs
- ToolStripSplitStackLayout.cs
- CachedTypeface.cs
- HierarchicalDataTemplate.cs
- HotCommands.cs
- OdbcError.cs
- ImageIndexConverter.cs