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;
///
///
///
/// 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PageSetupDialog.cs
- NetMsmqBinding.cs
- DbProviderManifest.cs
- TokenBasedSetEnumerator.cs
- dataobject.cs
- Condition.cs
- ActionMessageFilter.cs
- EventRouteFactory.cs
- SspiWrapper.cs
- MimeTypeMapper.cs
- XmlAnyElementAttribute.cs
- SharedHttpTransportManager.cs
- TransformGroup.cs
- RequestCachingSection.cs
- SqlTransaction.cs
- AgileSafeNativeMemoryHandle.cs
- MetadataArtifactLoader.cs
- ProfileSettingsCollection.cs
- WebPartCollection.cs
- OrderByExpression.cs
- LinqDataSourceDeleteEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SqlDelegatedTransaction.cs
- APCustomTypeDescriptor.cs
- HtmlLink.cs
- WebPartChrome.cs
- InitializingNewItemEventArgs.cs
- Symbol.cs
- BigInt.cs
- XmlMtomReader.cs
- X509Certificate2Collection.cs
- EntityTypeEmitter.cs
- IxmlLineInfo.cs
- Button.cs
- ParallelLoopState.cs
- RouteItem.cs
- ScalarType.cs
- JournalEntry.cs
- ProviderSettings.cs
- ListViewCancelEventArgs.cs
- SqlTransaction.cs
- AdjustableArrowCap.cs
- Vector.cs
- Size3D.cs
- DataObjectPastingEventArgs.cs
- RuleEngine.cs
- Timer.cs
- DTCTransactionManager.cs
- CollectionViewProxy.cs
- HandlerWithFactory.cs
- SpecialTypeDataContract.cs
- TreeViewCancelEvent.cs
- ProtocolsConfiguration.cs
- DigestTraceRecordHelper.cs
- ProxyHelper.cs
- VBIdentifierDesigner.xaml.cs
- SoapSchemaMember.cs
- ResourcesChangeInfo.cs
- CompositeActivityValidator.cs
- ParameterElementCollection.cs
- WebPartConnectionsEventArgs.cs
- EFTableProvider.cs
- OdbcError.cs
- UnknownBitmapEncoder.cs
- DesignSurfaceEvent.cs
- FrameworkContentElement.cs
- InvalidEnumArgumentException.cs
- OleDragDropHandler.cs
- TraceData.cs
- MatrixAnimationBase.cs
- ArrayListCollectionBase.cs
- XPathNodeHelper.cs
- PathGeometry.cs
- XPathScanner.cs
- TableAutomationPeer.cs
- CodeSnippetTypeMember.cs
- MulticastNotSupportedException.cs
- DBCommand.cs
- SystemIcmpV6Statistics.cs
- XmlSchemaGroupRef.cs
- FixedSOMFixedBlock.cs
- FontCollection.cs
- CodeRemoveEventStatement.cs
- AttributeCollection.cs
- ViewManagerAttribute.cs
- Control.cs
- FixedPage.cs
- Graphics.cs
- BrowserCapabilitiesCodeGenerator.cs
- SupportingTokenProviderSpecification.cs
- ProjectionRewriter.cs
- ConfigXmlSignificantWhitespace.cs
- ConfigurationManagerInternalFactory.cs
- SignedXml.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- PropertyEmitterBase.cs
- Comparer.cs
- CompiledRegexRunner.cs
- SystemPens.cs
- FtpRequestCacheValidator.cs