Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class LinkLabelLinkClickedEventArgs : EventArgs { private readonly LinkLabel.Link link; private readonly MouseButtons button; ////// Provides data for the ///event. /// /// /// public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) { this.link = link; this.button = MouseButtons.Left; } public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) { this.button = button; } ////// Initializes a new instance of the ///class, given the link. /// /// public MouseButtons Button { get { return button; } } ////// Gets the mouseButton which causes the link to be clicked /// ////// /// public LinkLabel.Link Link { get { return link; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets the ///that was clicked. /// // 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; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class LinkLabelLinkClickedEventArgs : EventArgs { private readonly LinkLabel.Link link; private readonly MouseButtons button; ////// Provides data for the ///event. /// /// /// public LinkLabelLinkClickedEventArgs(LinkLabel.Link link) { this.link = link; this.button = MouseButtons.Left; } public LinkLabelLinkClickedEventArgs(LinkLabel.Link link, MouseButtons button) : this(link) { this.button = button; } ////// Initializes a new instance of the ///class, given the link. /// /// public MouseButtons Button { get { return button; } } ////// Gets the mouseButton which causes the link to be clicked /// ////// /// public LinkLabel.Link Link { get { return link; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets the ///that was clicked. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EqualityArray.cs
- ConfigXmlComment.cs
- DesignerVerbCollection.cs
- EntityKeyElement.cs
- OletxEnlistment.cs
- SqlRewriteScalarSubqueries.cs
- PointUtil.cs
- DataView.cs
- XhtmlBasicSelectionListAdapter.cs
- WorkflowDebuggerSteppingAttribute.cs
- CharEntityEncoderFallback.cs
- SetterBase.cs
- WebEvents.cs
- ArrangedElementCollection.cs
- ListView.cs
- BufferModesCollection.cs
- PropertyGeneratedEventArgs.cs
- SharedPersonalizationStateInfo.cs
- MetadataReference.cs
- PerformanceCounterCategory.cs
- CodePrimitiveExpression.cs
- OutKeywords.cs
- _TimerThread.cs
- RelatedCurrencyManager.cs
- JpegBitmapDecoder.cs
- InheritanceUI.cs
- LocalizableResourceBuilder.cs
- FixedSOMElement.cs
- DataTrigger.cs
- Queue.cs
- BindingContext.cs
- FileDialog_Vista.cs
- ValidatorUtils.cs
- BindingSource.cs
- CannotUnloadAppDomainException.cs
- IdentityNotMappedException.cs
- ICspAsymmetricAlgorithm.cs
- CircleHotSpot.cs
- SystemFonts.cs
- EFTableProvider.cs
- TypeHelpers.cs
- MailDefinitionBodyFileNameEditor.cs
- MouseWheelEventArgs.cs
- Or.cs
- Calendar.cs
- ClientSideQueueItem.cs
- XPathExpr.cs
- JsonFormatReaderGenerator.cs
- WpfXamlLoader.cs
- FileDialogCustomPlace.cs
- ProcessHostFactoryHelper.cs
- ConfigurationSectionCollection.cs
- InputLanguageProfileNotifySink.cs
- InvocationExpression.cs
- RotateTransform3D.cs
- Size3D.cs
- tibetanshape.cs
- DbLambda.cs
- XmlBindingWorker.cs
- DataSourceView.cs
- TableLayoutPanel.cs
- MultiBindingExpression.cs
- LeftCellWrapper.cs
- Color.cs
- HandledMouseEvent.cs
- IRCollection.cs
- FormatException.cs
- FileFormatException.cs
- DetailsViewUpdatedEventArgs.cs
- ArgumentNullException.cs
- PolicyLevel.cs
- TypedReference.cs
- GlobalProxySelection.cs
- CodeThrowExceptionStatement.cs
- DoubleLink.cs
- ApplicationFileCodeDomTreeGenerator.cs
- BinaryNode.cs
- AttributeParameterInfo.cs
- CodeExpressionRuleDeclaration.cs
- XamlTreeBuilderBamlRecordWriter.cs
- PolicyStatement.cs
- SuppressIldasmAttribute.cs
- HttpCachePolicy.cs
- PropertyGridCommands.cs
- AsyncPostBackErrorEventArgs.cs
- CodeTryCatchFinallyStatement.cs
- DeclaredTypeValidatorAttribute.cs
- DoubleLinkList.cs
- HandleCollector.cs
- AsyncCodeActivityContext.cs
- IOException.cs
- MessageQueuePermissionEntryCollection.cs
- DrawingContextWalker.cs
- ToolbarAUtomationPeer.cs
- ResXResourceSet.cs
- ServicePrincipalNameElement.cs
- ScriptControlDescriptor.cs
- CompilerGlobalScopeAttribute.cs
- BamlTreeUpdater.cs
- DrawingDrawingContext.cs