Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- EUCJPEncoding.cs
- XLinq.cs
- SvcMapFile.cs
- DefaultPrintController.cs
- ConfigurationLocation.cs
- FrameworkName.cs
- SmtpClient.cs
- CapabilitiesUse.cs
- ExtendedProtectionPolicyElement.cs
- KnownAssembliesSet.cs
- ConfigurationSectionGroup.cs
- TextEditorThreadLocalStore.cs
- ReflectTypeDescriptionProvider.cs
- DockingAttribute.cs
- entityreference_tresulttype.cs
- EncoderBestFitFallback.cs
- FixedSOMPageElement.cs
- DataGridItemAttachedStorage.cs
- DrawListViewItemEventArgs.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- Guid.cs
- RawStylusSystemGestureInputReport.cs
- DataGridCellInfo.cs
- JsonStringDataContract.cs
- ElementNotAvailableException.cs
- SettingsBindableAttribute.cs
- BuilderInfo.cs
- SequentialOutput.cs
- ByteAnimationUsingKeyFrames.cs
- Enlistment.cs
- Drawing.cs
- XslVisitor.cs
- WizardForm.cs
- HelpExampleGenerator.cs
- PackageProperties.cs
- DrawingBrush.cs
- ComplexPropertyEntry.cs
- Trigger.cs
- Literal.cs
- LayoutEditorPart.cs
- LongTypeConverter.cs
- InputScopeConverter.cs
- UIHelper.cs
- FontUnit.cs
- PeerNameResolver.cs
- ActivityCompletionCallbackWrapper.cs
- TTSEngineTypes.cs
- ValueCollectionParameterReader.cs
- HttpWriter.cs
- IntegerValidatorAttribute.cs
- Matrix3DValueSerializer.cs
- CheckBoxPopupAdapter.cs
- PipelineModuleStepContainer.cs
- WebCategoryAttribute.cs
- WebPartHeaderCloseVerb.cs
- ControlPersister.cs
- TokenBasedSet.cs
- AspCompat.cs
- MissingSatelliteAssemblyException.cs
- SourceInterpreter.cs
- DodSequenceMerge.cs
- AutoGeneratedFieldProperties.cs
- EntityChangedParams.cs
- Lookup.cs
- JulianCalendar.cs
- DataGridAddNewRow.cs
- FixUp.cs
- Unit.cs
- DataListAutoFormat.cs
- XmlWhitespace.cs
- TransactionScope.cs
- ConcurrentDictionary.cs
- HWStack.cs
- MyContact.cs
- OSFeature.cs
- FixedElement.cs
- SqlFacetAttribute.cs
- BitmapEffectGeneralTransform.cs
- LexicalChunk.cs
- SafeThreadHandle.cs
- Graphics.cs
- ScrollPattern.cs
- EntityViewGenerationAttribute.cs
- ReferenceTypeElement.cs
- COM2IDispatchConverter.cs
- UseAttributeSetsAction.cs
- TextShapeableCharacters.cs
- DrawToolTipEventArgs.cs
- XmlWriterDelegator.cs
- SqlTrackingService.cs
- IPGlobalProperties.cs
- ValidatedMobileControlConverter.cs
- Switch.cs
- LayoutEditorPart.cs
- MetadataSection.cs
- TraceContextEventArgs.cs
- SqlAliasesReferenced.cs
- ProvideValueServiceProvider.cs
- TypeConstant.cs
- FileSystemEventArgs.cs