Code:
/ DotNET / DotNET / 8.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
- ImportContext.cs
- SplineQuaternionKeyFrame.cs
- ToolStripLabel.cs
- FrugalList.cs
- EdmProperty.cs
- SafeRightsManagementSessionHandle.cs
- EntityTypeEmitter.cs
- ResourceAttributes.cs
- SoapAttributeAttribute.cs
- NodeCounter.cs
- HighContrastHelper.cs
- XmlEncodedRawTextWriter.cs
- EmptyEnumerator.cs
- AdornerHitTestResult.cs
- WebConfigurationHostFileChange.cs
- OneToOneMappingSerializer.cs
- CommonProperties.cs
- BoundsDrawingContextWalker.cs
- DeploymentSectionCache.cs
- CodePageUtils.cs
- SiteMapNode.cs
- XmlSchemaCompilationSettings.cs
- Transform3DGroup.cs
- BamlLocalizabilityResolver.cs
- SQLInt16Storage.cs
- PerspectiveCamera.cs
- TextElement.cs
- XmlSchemaObjectTable.cs
- XslNumber.cs
- AbstractExpressions.cs
- ColorTransformHelper.cs
- ConstructorBuilder.cs
- SqlProvider.cs
- RelationshipFixer.cs
- SqlWebEventProvider.cs
- RelationshipNavigation.cs
- WizardPanelChangingEventArgs.cs
- TextBoxRenderer.cs
- ChannelCredentials.cs
- SimpleExpression.cs
- PropertyGridEditorPart.cs
- CmsUtils.cs
- DecoderReplacementFallback.cs
- SqlDataSourceCache.cs
- DashStyle.cs
- NativeMethods.cs
- MissingManifestResourceException.cs
- RequestNavigateEventArgs.cs
- CharEntityEncoderFallback.cs
- KeyedCollection.cs
- TreeNodeEventArgs.cs
- OrderedDictionaryStateHelper.cs
- ThemeDictionaryExtension.cs
- EventLogPermissionEntry.cs
- ScrollPatternIdentifiers.cs
- OpenFileDialog.cs
- documentation.cs
- SizeAnimation.cs
- TableLayoutStyleCollection.cs
- ControlEvent.cs
- ServiceAuthorizationManager.cs
- DependentTransaction.cs
- WebPartMenuStyle.cs
- RectKeyFrameCollection.cs
- DataGridPagerStyle.cs
- MDIControlStrip.cs
- RegexReplacement.cs
- Debug.cs
- _ListenerResponseStream.cs
- IHttpResponseInternal.cs
- XpsResourceDictionary.cs
- AgileSafeNativeMemoryHandle.cs
- TableItemStyle.cs
- OneOfElement.cs
- ProgressBarRenderer.cs
- ObjectItemLoadingSessionData.cs
- TableColumnCollection.cs
- ArrowControl.xaml.cs
- DataGridViewCellLinkedList.cs
- PopupEventArgs.cs
- MutexSecurity.cs
- TreeNodeBinding.cs
- returneventsaver.cs
- AutomationPropertyInfo.cs
- MaterialGroup.cs
- FtpCachePolicyElement.cs
- BamlCollectionHolder.cs
- PieceDirectory.cs
- WorkflowDesignerMessageFilter.cs
- AuthenticationModuleElement.cs
- MailSettingsSection.cs
- CodeDelegateCreateExpression.cs
- ControlParameter.cs
- RuleSetBrowserDialog.cs
- GridViewCellAutomationPeer.cs
- DoubleLinkListEnumerator.cs
- AdapterDictionary.cs
- TemplatePagerField.cs
- SeverityFilter.cs
- StrokeDescriptor.cs