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
- MemoryFailPoint.cs
- DbProviderSpecificTypePropertyAttribute.cs
- MarkupCompilePass1.cs
- ComponentEvent.cs
- EventListener.cs
- XmlSchemaExternal.cs
- SqlParameterCollection.cs
- ConfigurationValue.cs
- IISUnsafeMethods.cs
- CompleteWizardStep.cs
- DiscriminatorMap.cs
- CurrentChangingEventArgs.cs
- TouchDevice.cs
- TileModeValidation.cs
- SharedPerformanceCounter.cs
- MetadataCacheItem.cs
- SmiEventSink_Default.cs
- HashHelper.cs
- GridItemCollection.cs
- FloatUtil.cs
- contentDescriptor.cs
- VoiceSynthesis.cs
- BoundingRectTracker.cs
- Misc.cs
- RightsManagementResourceHelper.cs
- Substitution.cs
- SafeFindHandle.cs
- HeaderElement.cs
- CategoryEditor.cs
- NativeMethods.cs
- HWStack.cs
- HMACMD5.cs
- PropertyFilter.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- MimeAnyImporter.cs
- Vector3DKeyFrameCollection.cs
- DeferredTextReference.cs
- UnsafeNativeMethods.cs
- NumericExpr.cs
- AppDomainShutdownMonitor.cs
- MatrixCamera.cs
- mda.cs
- CancellationScope.cs
- FrameSecurityDescriptor.cs
- ResourceExpressionEditor.cs
- IncomingWebRequestContext.cs
- HttpRequestTraceRecord.cs
- ArgumentDesigner.xaml.cs
- InstanceCompleteException.cs
- DtdParser.cs
- IEnumerable.cs
- WebReferencesBuildProvider.cs
- OleDbPropertySetGuid.cs
- ClientTargetCollection.cs
- DesignerAdapterUtil.cs
- WebBaseEventKeyComparer.cs
- MessageCredentialType.cs
- HttpFileCollectionWrapper.cs
- ReaderWriterLock.cs
- SafeThreadHandle.cs
- ExpressionPrinter.cs
- HttpFileCollection.cs
- TextChangedEventArgs.cs
- SoapExtensionTypeElement.cs
- DataGridColumn.cs
- MessageEnumerator.cs
- BooleanToVisibilityConverter.cs
- WindowsRichEdit.cs
- ExchangeUtilities.cs
- Splitter.cs
- PerformanceCounterCategory.cs
- CaseInsensitiveComparer.cs
- SourceSwitch.cs
- ResourceKey.cs
- WsrmMessageInfo.cs
- CodeCastExpression.cs
- BufferedReadStream.cs
- XmlSignificantWhitespace.cs
- DrawingImage.cs
- DocumentationServerProtocol.cs
- DocumentOrderQuery.cs
- MatrixConverter.cs
- UIElementPropertyUndoUnit.cs
- SqlConnectionString.cs
- TextHidden.cs
- LayoutManager.cs
- RtfToXamlReader.cs
- InternalUserCancelledException.cs
- Line.cs
- TogglePatternIdentifiers.cs
- OneOfScalarConst.cs
- CollectionChangedEventManager.cs
- LicenseContext.cs
- LessThan.cs
- DocumentationServerProtocol.cs
- PocoEntityKeyStrategy.cs
- DrawingContextDrawingContextWalker.cs
- Property.cs
- PackageRelationshipSelector.cs
- DiscoveryDocumentLinksPattern.cs