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
- UrlMappingCollection.cs
- EditorZone.cs
- ParameterCollection.cs
- DispatcherExceptionEventArgs.cs
- IconEditor.cs
- SystemIcmpV6Statistics.cs
- WinInetCache.cs
- FileUpload.cs
- StylusTip.cs
- FixedSOMLineCollection.cs
- UIElementParagraph.cs
- BitmapEffectGeneralTransform.cs
- DynamicValidator.cs
- MsmqMessageProperty.cs
- SystemUdpStatistics.cs
- DataGridLinkButton.cs
- SaveWorkflowCommand.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- IxmlLineInfo.cs
- OutputCacheProfile.cs
- ThreadStaticAttribute.cs
- PersonalizationAdministration.cs
- DataGridDetailsPresenter.cs
- XmlSerializerAssemblyAttribute.cs
- SHA384Cng.cs
- StatusCommandUI.cs
- UInt32Storage.cs
- SwitchExpression.cs
- ExtendedProtectionPolicy.cs
- XmlDictionaryReaderQuotasElement.cs
- TreeNodeConverter.cs
- XslTransform.cs
- KnownColorTable.cs
- RegexParser.cs
- Listener.cs
- PersonalizablePropertyEntry.cs
- AnnotationResourceChangedEventArgs.cs
- ProxySimple.cs
- Literal.cs
- ListSourceHelper.cs
- OLEDB_Util.cs
- dbdatarecord.cs
- PrinterSettings.cs
- TextHidden.cs
- ClientScriptManagerWrapper.cs
- ConditionCollection.cs
- AttributeQuery.cs
- SAPICategories.cs
- CompiledIdentityConstraint.cs
- _AuthenticationState.cs
- DivideByZeroException.cs
- ConditionedDesigner.cs
- CellTreeNode.cs
- CSharpCodeProvider.cs
- ServiceObjectContainer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PropertyGrid.cs
- GroupQuery.cs
- ScriptBehaviorDescriptor.cs
- EmptyControlCollection.cs
- LinqDataSourceEditData.cs
- ProvidersHelper.cs
- FunctionUpdateCommand.cs
- WebBaseEventKeyComparer.cs
- Triplet.cs
- AssociationSet.cs
- EntityTypeEmitter.cs
- ButtonBase.cs
- CacheChildrenQuery.cs
- WebPartCancelEventArgs.cs
- ControlCommandSet.cs
- RightsManagementInformation.cs
- TdsParameterSetter.cs
- SQLByteStorage.cs
- MailWriter.cs
- X500Name.cs
- FtpWebResponse.cs
- TypefaceMap.cs
- Rotation3DKeyFrameCollection.cs
- SchemaMapping.cs
- XmlSchemaExporter.cs
- EventBindingService.cs
- NativeMethods.cs
- StringResourceManager.cs
- TransformedBitmap.cs
- NonSerializedAttribute.cs
- ClonableStack.cs
- Vector3dCollection.cs
- FormViewModeEventArgs.cs
- ElementInit.cs
- DescendantQuery.cs
- EdmComplexTypeAttribute.cs
- DiscoveryDocumentSerializer.cs
- XmlUtil.cs
- MouseCaptureWithinProperty.cs
- BaseParser.cs
- ConfigXmlSignificantWhitespace.cs
- ColumnResizeUndoUnit.cs
- ItemsControlAutomationPeer.cs
- HttpDictionary.cs