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
- CheckBoxList.cs
- AttributeQuery.cs
- SqlUtil.cs
- ExitEventArgs.cs
- PageRouteHandler.cs
- ObjectAnimationUsingKeyFrames.cs
- XsdValidatingReader.cs
- BaseResourcesBuildProvider.cs
- HtmlGenericControl.cs
- SamlAuthenticationStatement.cs
- WorkflowPageSetupDialog.cs
- CodeSnippetExpression.cs
- SchemaImporterExtension.cs
- TemplateBindingExtension.cs
- DataGridColumnCollection.cs
- VisemeEventArgs.cs
- Int64KeyFrameCollection.cs
- GACMembershipCondition.cs
- SpotLight.cs
- PerfCounterSection.cs
- ConstraintStruct.cs
- Documentation.cs
- SurrogateSelector.cs
- InkCanvasSelectionAdorner.cs
- ObjectComplexPropertyMapping.cs
- unitconverter.cs
- LinkedResource.cs
- OneOfTypeConst.cs
- TextEndOfLine.cs
- ToolStrip.cs
- ContentPresenter.cs
- VariableDesigner.xaml.cs
- ObjectDataSourceDesigner.cs
- TemplateColumn.cs
- SecurityManager.cs
- DataKeyArray.cs
- PrinterUnitConvert.cs
- ReceiveActivityDesigner.cs
- SymmetricAlgorithm.cs
- ReferencedType.cs
- DummyDataSource.cs
- Pen.cs
- SimpleApplicationHost.cs
- ContourSegment.cs
- TreeViewAutomationPeer.cs
- ButtonColumn.cs
- ISO2022Encoding.cs
- HtmlTernaryTree.cs
- CloudCollection.cs
- XamlBuildTaskServices.cs
- xml.cs
- MultipartContentParser.cs
- InvokeProviderWrapper.cs
- NumberFunctions.cs
- TrackingServices.cs
- AffineTransform3D.cs
- DataSourceIDConverter.cs
- MailAddressCollection.cs
- MappingMetadataHelper.cs
- TextRunCacheImp.cs
- AffineTransform3D.cs
- AutomationPropertyChangedEventArgs.cs
- TreeNodeSelectionProcessor.cs
- LZCodec.cs
- TableAutomationPeer.cs
- TextTreeNode.cs
- PackageRelationshipCollection.cs
- ExpressionEditorAttribute.cs
- KeyMatchBuilder.cs
- HoistedLocals.cs
- coordinator.cs
- GraphicsContext.cs
- TextFragmentEngine.cs
- DefaultHttpHandler.cs
- OdbcConnection.cs
- SqlRowUpdatedEvent.cs
- EventLogPermissionHolder.cs
- ThicknessConverter.cs
- Material.cs
- PersonalizationStateInfo.cs
- HostedTransportConfigurationBase.cs
- WindowsFormsLinkLabel.cs
- SimplePropertyEntry.cs
- hresults.cs
- EmptyEnumerator.cs
- Point.cs
- GPPOINT.cs
- CharacterBufferReference.cs
- XmlUtf8RawTextWriter.cs
- ToolboxCategory.cs
- DocumentViewerBase.cs
- DLinqTableProvider.cs
- PenLineJoinValidation.cs
- DataSetSchema.cs
- SqlDataSourceStatusEventArgs.cs
- SEHException.cs
- Vector3DValueSerializer.cs
- ActivationArguments.cs
- Command.cs
- ContentDisposition.cs