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
- MatcherBuilder.cs
- PropertyReference.cs
- ExpandSegmentCollection.cs
- SourceInterpreter.cs
- DbProviderServices.cs
- SerTrace.cs
- AliasExpr.cs
- EmbeddedObject.cs
- SrgsToken.cs
- TimeoutHelper.cs
- SimpleHandlerFactory.cs
- SerializationInfoEnumerator.cs
- XmlSerializerAssemblyAttribute.cs
- ExpandCollapsePattern.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- WindowsListViewItem.cs
- IisTraceWebEventProvider.cs
- SubqueryRules.cs
- QueryPageSettingsEventArgs.cs
- BmpBitmapEncoder.cs
- WebHttpSecurityElement.cs
- StylusPointPropertyUnit.cs
- DetailsViewUpdatedEventArgs.cs
- WebHeaderCollection.cs
- PaginationProgressEventArgs.cs
- FileAuthorizationModule.cs
- EntityContainerAssociationSet.cs
- DataBindingsDialog.cs
- EventHandlerList.cs
- FontConverter.cs
- SortedList.cs
- RuntimeConfigLKG.cs
- cookiecollection.cs
- MenuItem.cs
- SrgsSemanticInterpretationTag.cs
- SystemMulticastIPAddressInformation.cs
- AssemblyAssociatedContentFileAttribute.cs
- SingleStorage.cs
- ToolCreatedEventArgs.cs
- Point.cs
- XmlParserContext.cs
- SkipQueryOptionExpression.cs
- ZipIORawDataFileBlock.cs
- InternalMappingException.cs
- SplitterDesigner.cs
- DrawingAttributes.cs
- SspiNegotiationTokenAuthenticatorState.cs
- EastAsianLunisolarCalendar.cs
- CodeIterationStatement.cs
- CircleHotSpot.cs
- ModelFunction.cs
- linebase.cs
- DoubleAnimationClockResource.cs
- DependencyPropertyChangedEventArgs.cs
- RuntimeConfigurationRecord.cs
- HttpCookiesSection.cs
- TableHeaderCell.cs
- CodeConditionStatement.cs
- XmlSchemaFacet.cs
- XMLSyntaxException.cs
- InvalidProgramException.cs
- FragmentQueryKB.cs
- ErrorWebPart.cs
- LayoutExceptionEventArgs.cs
- TableLayoutCellPaintEventArgs.cs
- CallbackTimeoutsBehavior.cs
- HtmlString.cs
- wgx_commands.cs
- NavigationHelper.cs
- Expression.DebuggerProxy.cs
- _ProxyChain.cs
- FrameworkRichTextComposition.cs
- BufferedGraphicsManager.cs
- PointCollectionValueSerializer.cs
- Label.cs
- HighlightComponent.cs
- MutableAssemblyCacheEntry.cs
- IsolatedStorageFilePermission.cs
- ListViewTableRow.cs
- SapiRecoContext.cs
- DetailsViewInsertedEventArgs.cs
- SessionParameter.cs
- SafeHandles.cs
- EventlogProvider.cs
- SettingsPropertyNotFoundException.cs
- FormatterServices.cs
- AxisAngleRotation3D.cs
- MachineKeySection.cs
- GridViewRowCollection.cs
- __Error.cs
- Propagator.cs
- DoubleStorage.cs
- ChtmlPageAdapter.cs
- HierarchicalDataBoundControl.cs
- RecordBuilder.cs
- relpropertyhelper.cs
- WebCodeGenerator.cs
- FuncCompletionCallbackWrapper.cs
- Stylus.cs
- SafeTimerHandle.cs