Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebPartExportVerb.cs
- AssociationSet.cs
- DataGridViewButtonColumn.cs
- WaitForChangedResult.cs
- TextPenaltyModule.cs
- PrivilegedConfigurationManager.cs
- EpmTargetPathSegment.cs
- SourceCollection.cs
- Queue.cs
- Bitmap.cs
- GiveFeedbackEventArgs.cs
- Predicate.cs
- XmlIncludeAttribute.cs
- CodeSubDirectoriesCollection.cs
- SettingsProviderCollection.cs
- XmlIgnoreAttribute.cs
- HttpModuleAction.cs
- PreProcessor.cs
- _ConnectOverlappedAsyncResult.cs
- DictionarySectionHandler.cs
- MethodCallExpression.cs
- TypeLoadException.cs
- PointConverter.cs
- ProcessModuleCollection.cs
- RtfToXamlLexer.cs
- UInt32Converter.cs
- DataSourceProvider.cs
- XamlPathDataSerializer.cs
- LinqDataSourceInsertEventArgs.cs
- FaultBookmark.cs
- ChangePassword.cs
- NameObjectCollectionBase.cs
- ClientSideQueueItem.cs
- SimpleBitVector32.cs
- Effect.cs
- VectorCollection.cs
- InvokeHandlers.cs
- Util.cs
- BindingExpressionUncommonField.cs
- ImageMapEventArgs.cs
- HttpCookie.cs
- DataGridViewTopRowAccessibleObject.cs
- MTConfigUtil.cs
- DataGridViewRowPostPaintEventArgs.cs
- CompModHelpers.cs
- Configuration.cs
- _ServiceNameStore.cs
- WindowsFormsHost.cs
- invalidudtexception.cs
- TextOutput.cs
- DataContract.cs
- UnsafeNativeMethods.cs
- Vector.cs
- LicFileLicenseProvider.cs
- XmlQualifiedName.cs
- PreservationFileReader.cs
- backend.cs
- MultiPageTextView.cs
- OptimalTextSource.cs
- EncoderBestFitFallback.cs
- DataTemplateKey.cs
- QilExpression.cs
- ScriptIgnoreAttribute.cs
- TextEditorCharacters.cs
- CodeMemberProperty.cs
- FactoryRecord.cs
- SrgsGrammar.cs
- HttpContext.cs
- ToolStripDropDownDesigner.cs
- FormsAuthenticationUser.cs
- NestPullup.cs
- PrintPreviewGraphics.cs
- ProvidersHelper.cs
- SoapSchemaImporter.cs
- NamespaceInfo.cs
- RequestStatusBarUpdateEventArgs.cs
- Region.cs
- XamlReader.cs
- EventSetterHandlerConverter.cs
- ByteStream.cs
- UnsafeNativeMethods.cs
- SystemIcmpV4Statistics.cs
- ViewEventArgs.cs
- BindingObserver.cs
- PriorityQueue.cs
- FunctionGenerator.cs
- DataRecordInfo.cs
- BamlLocalizabilityResolver.cs
- AvTraceDetails.cs
- PackageRelationshipCollection.cs
- DataListItem.cs
- Convert.cs
- XDRSchema.cs
- TypeUtil.cs
- _AutoWebProxyScriptWrapper.cs
- InnerItemCollectionView.cs
- MemoryRecordBuffer.cs
- XmlSerializerNamespaces.cs
- Rect.cs
- FontStyles.cs