Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Logging.cs
- IMembershipProvider.cs
- CompareValidator.cs
- BamlWriter.cs
- ConnectionProviderAttribute.cs
- CookieProtection.cs
- PageParserFilter.cs
- GeometryCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- WindowsListViewItemCheckBox.cs
- RuleSetReference.cs
- TitleStyle.cs
- PointLightBase.cs
- DateTimeValueSerializerContext.cs
- SymbolMethod.cs
- ReverseInheritProperty.cs
- TemplatedWizardStep.cs
- OleAutBinder.cs
- EmptyCollection.cs
- HtmlTableCell.cs
- DelegateHelpers.cs
- OperatingSystem.cs
- CurrentChangedEventManager.cs
- Parameter.cs
- EventArgs.cs
- RTLAwareMessageBox.cs
- EnumValidator.cs
- BitmapCache.cs
- SerialPinChanges.cs
- MethodBuilderInstantiation.cs
- OracleMonthSpan.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- MessageDecoder.cs
- TablePatternIdentifiers.cs
- ScrollItemPattern.cs
- PromptBuilder.cs
- HttpApplicationFactory.cs
- CompilationLock.cs
- AnimatedTypeHelpers.cs
- TreeNodeBindingCollection.cs
- CompilerState.cs
- CharAnimationBase.cs
- COM2TypeInfoProcessor.cs
- listitem.cs
- CodeTypeDeclarationCollection.cs
- DesignerHost.cs
- UIAgentInitializationException.cs
- XmlNodeChangedEventManager.cs
- SessionStateContainer.cs
- XmlToDatasetMap.cs
- DesignerTransactionCloseEvent.cs
- AcceleratedTokenAuthenticator.cs
- FormViewInsertedEventArgs.cs
- ProbeMatchesApril2005.cs
- DataGridColumnHeaderCollection.cs
- CodeConstructor.cs
- ModelChangedEventArgsImpl.cs
- MenuItem.cs
- MetadataFile.cs
- TraceHandler.cs
- CurrentTimeZone.cs
- CodeGen.cs
- XmlDocumentFragment.cs
- ECDsaCng.cs
- DependencySource.cs
- FrameworkContentElement.cs
- RequiredAttributeAttribute.cs
- DataGridViewComboBoxEditingControl.cs
- MembershipUser.cs
- PrimarySelectionAdorner.cs
- LayoutDump.cs
- ToolStripTextBox.cs
- Converter.cs
- PropertyItemInternal.cs
- MouseActionConverter.cs
- XslTransform.cs
- OleDbPermission.cs
- ContentElement.cs
- WindowsListViewGroupHelper.cs
- WebPartConnectionsConfigureVerb.cs
- DbSource.cs
- EnlistmentTraceIdentifier.cs
- MergeLocalizationDirectives.cs
- LinqDataSourceView.cs
- IPipelineRuntime.cs
- CmsInterop.cs
- indexingfiltermarshaler.cs
- DiagnosticTrace.cs
- CultureTableRecord.cs
- DefaultBindingPropertyAttribute.cs
- DesignerDataView.cs
- DataFormat.cs
- X509SubjectKeyIdentifierClause.cs
- Decoder.cs
- Assembly.cs
- Cursors.cs
- WebDisplayNameAttribute.cs
- XsltArgumentList.cs
- EditorBrowsableAttribute.cs
- MachineKeyValidationConverter.cs