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
- Ref.cs
- ADMembershipProvider.cs
- BorderGapMaskConverter.cs
- NavigationEventArgs.cs
- unsafenativemethodsother.cs
- ClientApiGenerator.cs
- NativeMethods.cs
- ToolStripPanelRenderEventArgs.cs
- FormViewUpdateEventArgs.cs
- RegexRunnerFactory.cs
- InputProcessorProfilesLoader.cs
- XamlStyleSerializer.cs
- ReflectionTypeLoadException.cs
- AbstractSvcMapFileLoader.cs
- DbReferenceCollection.cs
- HierarchicalDataSourceControl.cs
- X509CertificateValidator.cs
- DSASignatureFormatter.cs
- ToolStripGripRenderEventArgs.cs
- validationstate.cs
- Dynamic.cs
- DataBoundControlAdapter.cs
- StrongNameKeyPair.cs
- Ray3DHitTestResult.cs
- BufferBuilder.cs
- SignatureDescription.cs
- EncodingNLS.cs
- ObjectSet.cs
- UnsafeNativeMethodsMilCoreApi.cs
- CapabilitiesUse.cs
- PackageRelationship.cs
- GlobalizationAssembly.cs
- SubMenuStyleCollectionEditor.cs
- StrongName.cs
- GridViewSortEventArgs.cs
- CalloutQueueItem.cs
- NetworkInterface.cs
- RotationValidation.cs
- Html32TextWriter.cs
- SelectionPattern.cs
- XmlIgnoreAttribute.cs
- StringKeyFrameCollection.cs
- OracleConnectionFactory.cs
- HttpWebResponse.cs
- InternalControlCollection.cs
- StylusLogic.cs
- ToolStripControlHost.cs
- ReaderOutput.cs
- XmlSchemaCollection.cs
- ObjectAnimationBase.cs
- DisplayMemberTemplateSelector.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- OutOfProcStateClientManager.cs
- Authorization.cs
- BlurBitmapEffect.cs
- ValueUtilsSmi.cs
- FileInfo.cs
- CaretElement.cs
- BStrWrapper.cs
- WindowsFormsHelpers.cs
- CodeGroup.cs
- SQLBytes.cs
- TypeConverter.cs
- WrapPanel.cs
- CodeSnippetStatement.cs
- LocalizationCodeDomSerializer.cs
- DesignerDataView.cs
- TimeZone.cs
- QilFactory.cs
- CompareValidator.cs
- XmlImplementation.cs
- TrailingSpaceComparer.cs
- Camera.cs
- DateTimeValueSerializerContext.cs
- StateDesigner.TransitionInfo.cs
- httpstaticobjectscollection.cs
- TextEffect.cs
- Script.cs
- Selector.cs
- BulletedListEventArgs.cs
- DynamicUpdateCommand.cs
- ColumnBinding.cs
- ObjectPersistData.cs
- AdornerHitTestResult.cs
- XmlSchemaAttribute.cs
- WindowInteropHelper.cs
- __Error.cs
- ListViewGroupItemCollection.cs
- StringCollectionEditor.cs
- ResourceDefaultValueAttribute.cs
- DataListItem.cs
- EditorAttribute.cs
- WmlTextViewAdapter.cs
- Int64Storage.cs
- ProxyGenerationError.cs
- AxHost.cs
- HWStack.cs
- CodeStatement.cs
- WindowsSecurityTokenAuthenticator.cs
- InternalReceiveMessage.cs