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 / LinkLabelLinkClickedEvent.cs / 1 / 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
- autovalidator.cs
- HwndSubclass.cs
- ResourceFallbackManager.cs
- Line.cs
- InputProcessorProfiles.cs
- DecimalAnimationUsingKeyFrames.cs
- WebPageTraceListener.cs
- WSFederationHttpBindingCollectionElement.cs
- TrackingServices.cs
- AncillaryOps.cs
- AuthenticationConfig.cs
- CustomValidator.cs
- DataColumnChangeEvent.cs
- XmlSchemaGroup.cs
- ClassImporter.cs
- DataTable.cs
- CharUnicodeInfo.cs
- SystemNetworkInterface.cs
- PrivilegedConfigurationManager.cs
- TemplateBindingExtensionConverter.cs
- UdpDiscoveryMessageFilter.cs
- StatusStrip.cs
- EntityProviderFactory.cs
- DataGrid.cs
- GridLengthConverter.cs
- connectionpool.cs
- AsyncOperation.cs
- CodeArrayCreateExpression.cs
- URLIdentityPermission.cs
- IgnoreDataMemberAttribute.cs
- documentsequencetextpointer.cs
- GrammarBuilderDictation.cs
- _AutoWebProxyScriptWrapper.cs
- WorkflowApplicationAbortedEventArgs.cs
- NegatedCellConstant.cs
- MissingManifestResourceException.cs
- ParameterCollection.cs
- ArgumentException.cs
- CheckStoreFileValidityRequest.cs
- ComplexTypeEmitter.cs
- Errors.cs
- DataGridViewCellFormattingEventArgs.cs
- ColumnReorderedEventArgs.cs
- ListSortDescriptionCollection.cs
- FrameSecurityDescriptor.cs
- ToolStripTextBox.cs
- X509Logo.cs
- IdnElement.cs
- WeakEventManager.cs
- DbConnectionPoolOptions.cs
- CdpEqualityComparer.cs
- SetIterators.cs
- DataGridViewUtilities.cs
- Point3DConverter.cs
- OleDbDataReader.cs
- EditorZone.cs
- XmlUtf8RawTextWriter.cs
- CollectionExtensions.cs
- ThreadStaticAttribute.cs
- HMACSHA256.cs
- SafeHandles.cs
- ReadOnlyCollectionBase.cs
- ResourceExpressionBuilder.cs
- DetailsViewModeEventArgs.cs
- VirtualizingPanel.cs
- GroupItemAutomationPeer.cs
- TailPinnedEventArgs.cs
- XmlNamespaceMapping.cs
- LogLogRecord.cs
- MouseButton.cs
- UnSafeCharBuffer.cs
- FactoryMaker.cs
- SqlClientWrapperSmiStream.cs
- LocationUpdates.cs
- TextElementCollection.cs
- AliasGenerator.cs
- HashUtility.cs
- UserThread.cs
- AttributeInfo.cs
- ToolBar.cs
- XmlUtil.cs
- StartFileNameEditor.cs
- TabControlToolboxItem.cs
- TextEvent.cs
- GenericTextProperties.cs
- ConnectorSelectionGlyph.cs
- CodeComment.cs
- UrlMapping.cs
- DatagridviewDisplayedBandsData.cs
- GeneralTransformGroup.cs
- CustomAttribute.cs
- ReferenceConverter.cs
- InProcStateClientManager.cs
- EventWaitHandle.cs
- WorkflowTraceTransfer.cs
- ServiceReference.cs
- CheckBoxPopupAdapter.cs
- DtdParser.cs
- UserNamePasswordClientCredential.cs
- Set.cs