Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TypedDataSourceCodeGenerator.cs
- ClientTarget.cs
- MemberDomainMap.cs
- TextElementEnumerator.cs
- ForwardPositionQuery.cs
- SQLCharsStorage.cs
- ToolboxItem.cs
- FusionWrap.cs
- StringHandle.cs
- Rotation3D.cs
- MatrixValueSerializer.cs
- ParameterInfo.cs
- SQLGuidStorage.cs
- XPathScanner.cs
- TargetPerspective.cs
- RequestCacheValidator.cs
- hresults.cs
- _ProxyRegBlob.cs
- ApplicationServiceManager.cs
- MetafileHeaderEmf.cs
- CommentGlyph.cs
- ClientRoleProvider.cs
- WebPartVerbsEventArgs.cs
- Vector3DKeyFrameCollection.cs
- ClientSession.cs
- MouseButtonEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- WebPartExportVerb.cs
- TaskDesigner.cs
- FormViewPagerRow.cs
- StorageConditionPropertyMapping.cs
- MissingSatelliteAssemblyException.cs
- LinkLabelLinkClickedEvent.cs
- TableProvider.cs
- RowToFieldTransformer.cs
- LicenseProviderAttribute.cs
- RuleProcessor.cs
- BufferedOutputStream.cs
- _NativeSSPI.cs
- ExceptionNotification.cs
- RsaEndpointIdentity.cs
- DiscriminatorMap.cs
- CodePropertyReferenceExpression.cs
- SiteMap.cs
- TimeIntervalCollection.cs
- PhysicalOps.cs
- SerialErrors.cs
- DictionarySectionHandler.cs
- SystemGatewayIPAddressInformation.cs
- COMException.cs
- SynchronizedInputAdaptor.cs
- SortAction.cs
- ColorPalette.cs
- CompositeFontInfo.cs
- UIPropertyMetadata.cs
- WindowsTreeView.cs
- MethodAccessException.cs
- ProxyFragment.cs
- FastEncoderWindow.cs
- TreeWalker.cs
- PixelFormatConverter.cs
- CodeAttributeDeclarationCollection.cs
- AppSettingsSection.cs
- CorrelationManager.cs
- QuaternionAnimation.cs
- ConfigurationElementCollection.cs
- QueryableDataSource.cs
- Hash.cs
- Property.cs
- WebPartTransformerAttribute.cs
- CodeGenHelper.cs
- followingquery.cs
- JsonEnumDataContract.cs
- Translator.cs
- Attributes.cs
- Int32AnimationUsingKeyFrames.cs
- ArrayExtension.cs
- X500Name.cs
- ReadWriteObjectLock.cs
- CallbackValidatorAttribute.cs
- KnownTypesProvider.cs
- KnownBoxes.cs
- ConfigXmlWhitespace.cs
- TextEndOfLine.cs
- MeasureData.cs
- Visual3DCollection.cs
- RIPEMD160.cs
- WindowsTooltip.cs
- BitmapEffectInput.cs
- CompositeCollectionView.cs
- SerializationInfo.cs
- CompositeActivityTypeDescriptor.cs
- Msec.cs
- ButtonColumn.cs
- SiteIdentityPermission.cs
- EventBookmark.cs
- ColorContext.cs
- BamlResourceDeserializer.cs
- OracleConnectionString.cs
- UIElement3D.cs