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; ////// /// [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
- TypeForwardedToAttribute.cs
- ImplicitInputBrush.cs
- SoapBinding.cs
- StsCommunicationException.cs
- FlowDocumentScrollViewer.cs
- AesCryptoServiceProvider.cs
- DeferredTextReference.cs
- ZipIOLocalFileDataDescriptor.cs
- DesignerSerializerAttribute.cs
- _AutoWebProxyScriptHelper.cs
- WizardStepCollectionEditor.cs
- ResourceReferenceKeyNotFoundException.cs
- GroupBoxAutomationPeer.cs
- WindowsUpDown.cs
- listitem.cs
- Icon.cs
- DataGridViewColumnTypePicker.cs
- AngleUtil.cs
- HandlerFactoryCache.cs
- AuthenticationServiceManager.cs
- SystemWebCachingSectionGroup.cs
- FunctionDescription.cs
- NativeCompoundFileAPIs.cs
- CqlBlock.cs
- Int32AnimationUsingKeyFrames.cs
- PointCollectionConverter.cs
- SafeSystemMetrics.cs
- MultipartContentParser.cs
- FamilyCollection.cs
- MessageLoggingElement.cs
- MessageOperationFormatter.cs
- Rule.cs
- GlobalEventManager.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ContextDataSource.cs
- Internal.cs
- infer.cs
- SafeCryptHandles.cs
- NativeCompoundFileAPIs.cs
- ReachPageContentSerializerAsync.cs
- OpCodes.cs
- BamlTreeMap.cs
- EventWaitHandle.cs
- DecoderNLS.cs
- ILGen.cs
- XmlSchemaRedefine.cs
- HttpModuleActionCollection.cs
- EndpointConfigContainer.cs
- PopupRoot.cs
- XmlReflectionImporter.cs
- EmissiveMaterial.cs
- HttpListenerRequest.cs
- GridViewRowCollection.cs
- BamlVersionHeader.cs
- ParentQuery.cs
- SystemIcmpV6Statistics.cs
- RuntimeVariableList.cs
- DocumentApplication.cs
- EncodingNLS.cs
- GetIndexBinder.cs
- DBConnectionString.cs
- DictionaryManager.cs
- FileSystemWatcher.cs
- MSAANativeProvider.cs
- SHA384.cs
- BinaryWriter.cs
- EncryptedHeader.cs
- LineGeometry.cs
- XmlAttributeCache.cs
- DbConnectionPoolOptions.cs
- DeflateEmulationStream.cs
- ObjectDataSourceChooseMethodsPanel.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- RegexGroupCollection.cs
- SmiConnection.cs
- SoapElementAttribute.cs
- UInt32.cs
- BidPrivateBase.cs
- TemplateKeyConverter.cs
- TraceContextEventArgs.cs
- CollectionViewGroup.cs
- MetadataUtil.cs
- ScriptResourceHandler.cs
- HttpContext.cs
- CatalogZone.cs
- ReadOnlyPropertyMetadata.cs
- LinqDataSourceDisposeEventArgs.cs
- WinFormsUtils.cs
- Base64Stream.cs
- ContentElementAutomationPeer.cs
- GAC.cs
- NamedPermissionSet.cs
- LinkLabelLinkClickedEvent.cs
- DataStorage.cs
- PageVisual.cs
- Span.cs
- MonitoringDescriptionAttribute.cs
- EntityClassGenerator.cs
- InvalidEnumArgumentException.cs
- LocalBuilder.cs