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
- IfAction.cs
- MailHeaderInfo.cs
- TreeIterator.cs
- SqlUserDefinedTypeAttribute.cs
- PreviousTrackingServiceAttribute.cs
- HtmlControlPersistable.cs
- WebBrowserUriTypeConverter.cs
- OpenCollectionAsyncResult.cs
- MutexSecurity.cs
- XmlSchemaComplexContentExtension.cs
- IEnumerable.cs
- LinkArea.cs
- RadioButtonAutomationPeer.cs
- StylusPointDescription.cs
- PageHandlerFactory.cs
- AsymmetricSignatureFormatter.cs
- KnownTypesHelper.cs
- WorkflowInstanceExtensionProvider.cs
- ContainerControl.cs
- SchemaAttDef.cs
- BufferCache.cs
- BaseTemplateBuildProvider.cs
- WindowsPen.cs
- MutableAssemblyCacheEntry.cs
- DocumentReference.cs
- FlowDocumentPageViewerAutomationPeer.cs
- PageStatePersister.cs
- ElementAtQueryOperator.cs
- ExplicitDiscriminatorMap.cs
- DBParameter.cs
- TimerElapsedEvenArgs.cs
- WpfXamlType.cs
- DeclaredTypeValidatorAttribute.cs
- EventHandlers.cs
- Int64Storage.cs
- InkCanvas.cs
- WindowsListViewItem.cs
- ZoomingMessageFilter.cs
- NullNotAllowedCollection.cs
- SSmlParser.cs
- CheckBoxPopupAdapter.cs
- WorkflowPersistenceService.cs
- HtmlHead.cs
- Configuration.cs
- QuaternionKeyFrameCollection.cs
- XmlSchemaElement.cs
- ListViewGroupConverter.cs
- PersistenceTypeAttribute.cs
- ConfigurationManagerHelperFactory.cs
- ArrangedElementCollection.cs
- HtmlValidatorAdapter.cs
- ReadOnlyHierarchicalDataSource.cs
- GroupBoxRenderer.cs
- DataGridHelper.cs
- DefaultValueMapping.cs
- ThrowHelper.cs
- DbUpdateCommandTree.cs
- BlurEffect.cs
- NamespaceListProperty.cs
- WindowsScrollBarBits.cs
- StrokeFIndices.cs
- DrawingContextWalker.cs
- Section.cs
- ConfigXmlAttribute.cs
- WebConfigurationManager.cs
- TextTreeTextElementNode.cs
- pingexception.cs
- RuntimeConfigurationRecord.cs
- SettingsSection.cs
- TransformProviderWrapper.cs
- WsdlBuildProvider.cs
- ClientTargetSection.cs
- SourceLocationProvider.cs
- SystemInfo.cs
- EventLogPermissionAttribute.cs
- webproxy.cs
- TableHeaderCell.cs
- SelectionPattern.cs
- SemanticBasicElement.cs
- CollectionBase.cs
- SoapMessage.cs
- MenuDesigner.cs
- VisualStyleRenderer.cs
- ItemCheckedEvent.cs
- WebPartConnectionsCancelVerb.cs
- TreeViewBindingsEditor.cs
- CodeAttributeDeclarationCollection.cs
- CredentialCache.cs
- PolyBezierSegmentFigureLogic.cs
- ChildTable.cs
- BuildProvidersCompiler.cs
- FlowNode.cs
- PeerMessageDispatcher.cs
- querybuilder.cs
- HtmlMobileTextWriter.cs
- CodeTypeParameterCollection.cs
- XPathChildIterator.cs
- autovalidator.cs
- StringArrayConverter.cs
- WorkflowServiceHostFactory.cs