Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
///
///
///
/// Provides data for the event.
///
///
[System.Runtime.InteropServices.ComVisible(true)]
public class LinkLabelLinkClickedEventArgs : EventArgs {
private readonly LinkLabel.Link link;
private readonly MouseButtons button;
///
///
///
/// Initializes a new instance of the class, given the link.
///
///
public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) {
this.link = link;
this.button = MouseButtons.Left;
}
public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) {
this.button = button;
}
///
///
/// Gets the mouseButton which causes the link to be clicked
///
///
public MouseButtons Button {
get {
return button;
}
}
///
///
///
/// Gets the that was clicked.
///
///
public LinkLabel.Link Link {
get {
return link;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LoaderAllocator.cs
- CharConverter.cs
- MetadataArtifactLoaderCompositeFile.cs
- ColumnCollection.cs
- RelationshipDetailsRow.cs
- sortedlist.cs
- EventProvider.cs
- Style.cs
- FixedTextPointer.cs
- DoubleAnimationUsingPath.cs
- Schema.cs
- WsatServiceCertificate.cs
- TakeQueryOptionExpression.cs
- TemplateXamlTreeBuilder.cs
- FastEncoderWindow.cs
- _NetworkingPerfCounters.cs
- cookiecollection.cs
- ResXResourceReader.cs
- FixedPageStructure.cs
- SmtpDigestAuthenticationModule.cs
- CreateUserErrorEventArgs.cs
- ClientOptions.cs
- ExtendedProperty.cs
- EdmComplexPropertyAttribute.cs
- RectangleHotSpot.cs
- CngKeyBlobFormat.cs
- GatewayDefinition.cs
- CrossSiteScriptingValidation.cs
- PersonalizationStateInfo.cs
- ProcessModuleDesigner.cs
- RecognitionEventArgs.cs
- HostedHttpRequestAsyncResult.cs
- SelectionItemPattern.cs
- StyleXamlTreeBuilder.cs
- RequestResponse.cs
- EmptyStringExpandableObjectConverter.cs
- COSERVERINFO.cs
- SamlAssertion.cs
- ParentQuery.cs
- RegularExpressionValidator.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- RecognizerBase.cs
- RichTextBoxAutomationPeer.cs
- UnSafeCharBuffer.cs
- IItemProperties.cs
- SingleAnimationBase.cs
- ColumnBinding.cs
- ToolStripCodeDomSerializer.cs
- VisualTreeHelper.cs
- LinqDataSourceView.cs
- NameValuePair.cs
- GradientStop.cs
- XmlSchemaResource.cs
- ToolStripTextBox.cs
- XsltFunctions.cs
- Emitter.cs
- LinkedResource.cs
- ThreadAttributes.cs
- Int32Converter.cs
- TemplateBindingExtension.cs
- ListenerSessionConnection.cs
- ServicePoint.cs
- SqlException.cs
- Point.cs
- DataGridViewCheckBoxColumn.cs
- DataServiceResponse.cs
- CodeAttributeArgumentCollection.cs
- WindowsFormsSectionHandler.cs
- TreeWalkHelper.cs
- FigureParaClient.cs
- XmlSchemaSimpleContent.cs
- DesignerCommandAdapter.cs
- PagesSection.cs
- DataControlImageButton.cs
- SHA384Cng.cs
- RootBuilder.cs
- MouseBinding.cs
- DesignerVerbCollection.cs
- GenericUriParser.cs
- SHA256Managed.cs
- RelativeSource.cs
- NotifyParentPropertyAttribute.cs
- ValueOfAction.cs
- SqlDeflator.cs
- ValueType.cs
- SingleTagSectionHandler.cs
- DesignOnlyAttribute.cs
- ProcessHostFactoryHelper.cs
- SynchronizationLockException.cs
- AndCondition.cs
- SmtpSection.cs
- UrlAuthFailedErrorFormatter.cs
- DictionarySectionHandler.cs
- x509utils.cs
- EditorPartCollection.cs
- ScopeElementCollection.cs
- TableAdapterManagerHelper.cs
- OleDbCommand.cs
- SettingsPropertyNotFoundException.cs
- IntegerValidator.cs