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
- SizeConverter.cs
- CheckoutException.cs
- XmlSchemaSearchPattern.cs
- InternalTransaction.cs
- EndPoint.cs
- ModifiableIteratorCollection.cs
- XmlSchemaType.cs
- TagPrefixAttribute.cs
- DataControlField.cs
- RequiredAttributeAttribute.cs
- DispatcherExceptionEventArgs.cs
- VectorCollectionConverter.cs
- TemplateBindingExtensionConverter.cs
- DashStyles.cs
- ButtonRenderer.cs
- DataGridDetailsPresenterAutomationPeer.cs
- WSFederationHttpSecurityElement.cs
- Int32Rect.cs
- OdbcRowUpdatingEvent.cs
- HostingEnvironmentException.cs
- ValidationHelpers.cs
- DataGridViewRowConverter.cs
- ImageAnimator.cs
- XmlEncodedRawTextWriter.cs
- MSAAEventDispatcher.cs
- XmlSchemaSimpleContent.cs
- GraphicsContext.cs
- FieldAccessException.cs
- RestHandler.cs
- TemplateControl.cs
- IdentityManager.cs
- AnnotationService.cs
- XamlReaderConstants.cs
- PieceDirectory.cs
- COSERVERINFO.cs
- CancelRequestedQuery.cs
- SkewTransform.cs
- EntityContainerRelationshipSetEnd.cs
- CounterCreationDataConverter.cs
- EventLog.cs
- XmlBindingWorker.cs
- SchemaInfo.cs
- IUnknownConstantAttribute.cs
- SqlBulkCopyColumnMapping.cs
- CodeBlockBuilder.cs
- WorkflowInstanceExtensionCollection.cs
- TextReturnReader.cs
- ReflectionPermission.cs
- StrokeCollection2.cs
- StoreItemCollection.cs
- Table.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ComNativeDescriptor.cs
- FastEncoder.cs
- ColorKeyFrameCollection.cs
- ByteAnimationUsingKeyFrames.cs
- TextRangeAdaptor.cs
- InvalidProgramException.cs
- QueryResponse.cs
- BeginEvent.cs
- AuthorizationSection.cs
- ElementProxy.cs
- DataServiceException.cs
- AuthenticationConfig.cs
- UriSection.cs
- _SSPISessionCache.cs
- TreeNodeCollection.cs
- XPathNodeIterator.cs
- HttpCacheParams.cs
- TextDecorations.cs
- IsolationInterop.cs
- TraceProvider.cs
- KerberosReceiverSecurityToken.cs
- ZipFileInfo.cs
- SharedStream.cs
- GridViewRowPresenter.cs
- FormViewModeEventArgs.cs
- _Events.cs
- ProjectionCamera.cs
- DataGridPageChangedEventArgs.cs
- XsdBuildProvider.cs
- SqlBuilder.cs
- GPPOINTF.cs
- SpellCheck.cs
- BufferedOutputStream.cs
- SessionPageStateSection.cs
- SafeNativeMemoryHandle.cs
- PositiveTimeSpanValidatorAttribute.cs
- IMembershipProvider.cs
- Int32Animation.cs
- BitmapPalette.cs
- IgnoreFlushAndCloseStream.cs
- BindableTemplateBuilder.cs
- BrowserCapabilitiesFactoryBase.cs
- RangeValueProviderWrapper.cs
- TextMetrics.cs
- PiiTraceSource.cs
- SafeNativeMethods.cs
- FormatConvertedBitmap.cs
- EndpointFilterProvider.cs