Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DmlSqlGenerator.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ToolStripItemTextRenderEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- RijndaelManagedTransform.cs
- SevenBitStream.cs
- WebPartEditVerb.cs
- GridItemProviderWrapper.cs
- EdmConstants.cs
- IDataContractSurrogate.cs
- AutomationPattern.cs
- HttpHeaderCollection.cs
- MbpInfo.cs
- xmlformatgeneratorstatics.cs
- Rect.cs
- SapiGrammar.cs
- DashStyle.cs
- TagMapCollection.cs
- TrimSurroundingWhitespaceAttribute.cs
- FocusManager.cs
- ItemsChangedEventArgs.cs
- ReflectionUtil.cs
- WindowsRichEditRange.cs
- PropertyChangedEventArgs.cs
- OperationResponse.cs
- CssTextWriter.cs
- TextProperties.cs
- ItemContainerGenerator.cs
- PeerNameResolver.cs
- InheritanceRules.cs
- TempEnvironment.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- ApplicationGesture.cs
- OptimalBreakSession.cs
- CqlLexerHelpers.cs
- TrimSurroundingWhitespaceAttribute.cs
- SequentialOutput.cs
- SqlDataSourceQueryEditor.cs
- XmlQualifiedNameTest.cs
- ChangeInterceptorAttribute.cs
- GifBitmapEncoder.cs
- EdmScalarPropertyAttribute.cs
- RowCache.cs
- GlobalProxySelection.cs
- CodeMethodInvokeExpression.cs
- XmlDocumentFragment.cs
- AutomationTextAttribute.cs
- SafeProcessHandle.cs
- PasswordDeriveBytes.cs
- Debug.cs
- DataGridTemplateColumn.cs
- DataRecordInfo.cs
- Error.cs
- StylusSystemGestureEventArgs.cs
- String.cs
- SQLByte.cs
- DataListCommandEventArgs.cs
- DefaultBinder.cs
- loginstatus.cs
- DataGridViewCellParsingEventArgs.cs
- RC2CryptoServiceProvider.cs
- ObjectStateFormatter.cs
- NumberSubstitution.cs
- DoubleAnimationClockResource.cs
- CngProvider.cs
- RawAppCommandInputReport.cs
- FontResourceCache.cs
- CodeNamespaceImportCollection.cs
- ConfigsHelper.cs
- LOSFormatter.cs
- ApplicationServicesHostFactory.cs
- TransactionScope.cs
- DocComment.cs
- FixedPageProcessor.cs
- Assert.cs
- PersonalizationDictionary.cs
- Int16.cs
- Identity.cs
- Padding.cs
- MinMaxParagraphWidth.cs
- EntityDataSourceContextCreatingEventArgs.cs
- OleDbError.cs
- ClientBuildManagerCallback.cs
- TransactionTraceIdentifier.cs
- LayoutDump.cs
- FastPropertyAccessor.cs
- Double.cs
- CommandField.cs
- KeyConstraint.cs
- ElementHostAutomationPeer.cs
- ViewValidator.cs
- ButtonChrome.cs
- InternalDispatchObject.cs
- NamedPipeChannelFactory.cs
- GeneralTransformGroup.cs
- CmsUtils.cs
- LoginName.cs
- Primitive.cs
- DerivedKeySecurityTokenStub.cs
- NamedPipeProcessProtocolHandler.cs