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
- FocusWithinProperty.cs
- TransactionProtocolConverter.cs
- CellIdBoolean.cs
- ComplexTypeEmitter.cs
- SingleTagSectionHandler.cs
- Serializer.cs
- SqlCrossApplyToCrossJoin.cs
- WindowPatternIdentifiers.cs
- Proxy.cs
- SystemDiagnosticsSection.cs
- DataColumnMapping.cs
- TextBreakpoint.cs
- DataControlButton.cs
- Localizer.cs
- WorkBatch.cs
- IPPacketInformation.cs
- ReversePositionQuery.cs
- EncryptedData.cs
- EnumerableRowCollectionExtensions.cs
- ContextStaticAttribute.cs
- HttpGetClientProtocol.cs
- PackWebRequest.cs
- MulticastNotSupportedException.cs
- initElementDictionary.cs
- ChildTable.cs
- TypeInformation.cs
- TextProperties.cs
- KeyValueInternalCollection.cs
- IdentityManager.cs
- IDReferencePropertyAttribute.cs
- CacheEntry.cs
- SamlDoNotCacheCondition.cs
- ResourceExpressionEditorSheet.cs
- RadioButtonFlatAdapter.cs
- SelectionEditingBehavior.cs
- EdmSchemaAttribute.cs
- SafeHandle.cs
- XmlRootAttribute.cs
- ListViewEditEventArgs.cs
- OutputScope.cs
- PhonemeConverter.cs
- ToolboxItemSnapLineBehavior.cs
- IPAddressCollection.cs
- FileVersionInfo.cs
- RC2.cs
- RoleManagerEventArgs.cs
- HideDisabledControlAdapter.cs
- TextTreeDeleteContentUndoUnit.cs
- _BaseOverlappedAsyncResult.cs
- SvcMapFile.cs
- SoapFault.cs
- SafeNativeMethods.cs
- AlignmentYValidation.cs
- InternalBase.cs
- XPathNode.cs
- RowsCopiedEventArgs.cs
- StringUtil.cs
- _FixedSizeReader.cs
- EntityTemplateUserControl.cs
- SoapWriter.cs
- TraceProvider.cs
- ResourcesBuildProvider.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- MaxValueConverter.cs
- ObjectDisposedException.cs
- HybridObjectCache.cs
- TokenBasedSet.cs
- PeerNodeAddress.cs
- BaseTemplateParser.cs
- DefaultValueTypeConverter.cs
- DefaultValueTypeConverter.cs
- StylusSystemGestureEventArgs.cs
- XamlParser.cs
- MouseEventArgs.cs
- SqlDuplicator.cs
- SafeNativeMethods.cs
- DynamicMethod.cs
- RecordConverter.cs
- TemplatePropertyEntry.cs
- DiagnosticsElement.cs
- ObjectDisposedException.cs
- CompositionAdorner.cs
- DataFieldConverter.cs
- CfgRule.cs
- IsolatedStorageFile.cs
- Rfc2898DeriveBytes.cs
- MultipleFilterMatchesException.cs
- PreProcessor.cs
- PackageRelationshipCollection.cs
- SafeTimerHandle.cs
- DependencyPropertyDescriptor.cs
- ArrangedElement.cs
- KnownBoxes.cs
- HandledEventArgs.cs
- SortKey.cs
- Stream.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ImageButton.cs
- DotExpr.cs
- SchemaInfo.cs