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
- DeferredTextReference.cs
- LayoutEngine.cs
- RemotingAttributes.cs
- SamlNameIdentifierClaimResource.cs
- _NestedMultipleAsyncResult.cs
- AssemblyCache.cs
- Calendar.cs
- BaseTransportHeaders.cs
- SurrogateEncoder.cs
- InvalidTimeZoneException.cs
- InstanceKeyCollisionException.cs
- RegionIterator.cs
- X509SecurityToken.cs
- DynamicHyperLink.cs
- _HeaderInfoTable.cs
- ImportCatalogPart.cs
- ByteBufferPool.cs
- WebPartConnectVerb.cs
- Context.cs
- SecondaryIndexList.cs
- ActivityBuilder.cs
- XmlEncoding.cs
- QueryStringHandler.cs
- elementinformation.cs
- DataMisalignedException.cs
- SplayTreeNode.cs
- SqlFunctionAttribute.cs
- SmiRecordBuffer.cs
- CryptoSession.cs
- ComNativeDescriptor.cs
- CaseStatementProjectedSlot.cs
- SafeSecurityHandles.cs
- AttributeSetAction.cs
- ReturnValue.cs
- RangeContentEnumerator.cs
- DataGridViewCellFormattingEventArgs.cs
- TypeDependencyAttribute.cs
- ListMarkerLine.cs
- ContentPathSegment.cs
- WFItemsToSpacerVisibility.cs
- SHA512.cs
- WorkflowOperationBehavior.cs
- DaylightTime.cs
- InvalidCardException.cs
- KeyMatchBuilder.cs
- SchemaRegistration.cs
- NavigatorOutput.cs
- SqlBulkCopyColumnMapping.cs
- RuntimeHandles.cs
- XmlSchemaObjectTable.cs
- ExceptQueryOperator.cs
- ADMembershipUser.cs
- DragDeltaEventArgs.cs
- DesignerLinkAdapter.cs
- XmlSerializationGeneratedCode.cs
- BinaryParser.cs
- ContentElement.cs
- ScrollBarRenderer.cs
- Shape.cs
- TemplatePropertyEntry.cs
- DataGridViewCheckBoxColumn.cs
- Group.cs
- SerializationInfoEnumerator.cs
- SQLRoleProvider.cs
- SystemIcmpV4Statistics.cs
- PopupRootAutomationPeer.cs
- ListViewItem.cs
- MarkupProperty.cs
- RelatedPropertyManager.cs
- ResourceContainer.cs
- TypeRestriction.cs
- RelationshipManager.cs
- DocumentApplication.cs
- MediaCommands.cs
- XmlSchemaValidationException.cs
- DropDownList.cs
- DomainLiteralReader.cs
- ConfigurationStrings.cs
- ModifierKeysValueSerializer.cs
- OracleRowUpdatingEventArgs.cs
- PolyBezierSegmentFigureLogic.cs
- LayoutEngine.cs
- SqlCrossApplyToCrossJoin.cs
- BoolExpressionVisitors.cs
- WmpBitmapDecoder.cs
- EmptyEnumerable.cs
- OleServicesContext.cs
- EFDataModelProvider.cs
- EncoderParameters.cs
- ParseElement.cs
- TakeOrSkipWhileQueryOperator.cs
- FileSecurity.cs
- RootProfilePropertySettingsCollection.cs
- XmlDataLoader.cs
- SiteMapDesignerDataSourceView.cs
- OracleRowUpdatingEventArgs.cs
- DataFormats.cs
- ParameterModifier.cs
- JsonFormatWriterGenerator.cs
- SafeBuffer.cs