Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / LinkLabelLinkClickedEvent.cs / 1305376 / LinkLabelLinkClickedEvent.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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class LinkLabelLinkClickedEventArgs : EventArgs { private readonly LinkLabel.Link link; private readonly MouseButtons button; ////// Provides data for the ///event. /// /// /// public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) { this.link = link; this.button = MouseButtons.Left; } public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) { this.button = button; } ////// Initializes a new instance of the ///class, given the link. /// /// public MouseButtons Button { get { return button; } } ////// Gets the mouseButton which causes the link to be clicked /// ////// /// public LinkLabel.Link Link { get { return link; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the ///that was clicked. /// // 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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class LinkLabelLinkClickedEventArgs : EventArgs { private readonly LinkLabel.Link link; private readonly MouseButtons button; ////// Provides data for the ///event. /// /// /// public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) { this.link = link; this.button = MouseButtons.Left; } public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) { this.button = button; } ////// Initializes a new instance of the ///class, given the link. /// /// public MouseButtons Button { get { return button; } } ////// Gets the mouseButton which causes the link to be clicked /// ////// /// public LinkLabel.Link Link { get { return link; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the ///that was clicked. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScrollEventArgs.cs
- NumericUpDown.cs
- Message.cs
- SpeechSeg.cs
- EpmTargetTree.cs
- StackOverflowException.cs
- PersonalizationProvider.cs
- FontSource.cs
- NativeMethods.cs
- PersonalizationStateInfo.cs
- TextElementCollectionHelper.cs
- EntityDataSourceViewSchema.cs
- VersionedStream.cs
- StateBag.cs
- SuppressMessageAttribute.cs
- TraversalRequest.cs
- CompositeScriptReferenceEventArgs.cs
- SetterTriggerConditionValueConverter.cs
- KeyGesture.cs
- RegexParser.cs
- FixedSOMTextRun.cs
- ContentFileHelper.cs
- Message.cs
- Typography.cs
- TypeValidationEventArgs.cs
- BindingContext.cs
- HwndAppCommandInputProvider.cs
- CommandHelpers.cs
- SmiMetaDataProperty.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ApplicationGesture.cs
- StreamWithDictionary.cs
- BooleanSwitch.cs
- QueryAsyncResult.cs
- OdbcUtils.cs
- _ShellExpression.cs
- CannotUnloadAppDomainException.cs
- MD5.cs
- basevalidator.cs
- SQLGuidStorage.cs
- __ComObject.cs
- BamlReader.cs
- XLinq.cs
- HttpListenerPrefixCollection.cs
- JsonFormatGeneratorStatics.cs
- DataSpaceManager.cs
- GeneralTransform3DTo2DTo3D.cs
- DynamicValidator.cs
- DragDropManager.cs
- StructureChangedEventArgs.cs
- TreeIterators.cs
- ManipulationDevice.cs
- Transform.cs
- TextDecorationCollectionConverter.cs
- _ChunkParse.cs
- SpeakInfo.cs
- Transform3DCollection.cs
- ChangeProcessor.cs
- TextProperties.cs
- CompiledXpathExpr.cs
- GeometryConverter.cs
- FieldToken.cs
- BigInt.cs
- XPathNodeInfoAtom.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CallbackException.cs
- _SecureChannel.cs
- KernelTypeValidation.cs
- ArrayTypeMismatchException.cs
- TrackingMemoryStream.cs
- CompareValidator.cs
- GPPOINTF.cs
- StringFreezingAttribute.cs
- ObjectReaderCompiler.cs
- Size3DValueSerializer.cs
- HyperLinkColumn.cs
- UndoEngine.cs
- CSharpCodeProvider.cs
- HyperLinkColumn.cs
- DelegatingConfigHost.cs
- SafeNativeMethods.cs
- XXXOnTypeBuilderInstantiation.cs
- Graphics.cs
- MultiDataTrigger.cs
- BreakRecordTable.cs
- DirtyTextRange.cs
- XmlReflectionMember.cs
- AuthorizationSection.cs
- ConfigurationException.cs
- ChannelDispatcherBase.cs
- ListBindableAttribute.cs
- Validator.cs
- RoutedPropertyChangedEventArgs.cs
- HtmlButton.cs
- BitmapEffect.cs
- XmlArrayItemAttribute.cs
- XmlILOptimizerVisitor.cs
- ImmutableAssemblyCacheEntry.cs
- ConvertersCollection.cs
- TextElementCollectionHelper.cs