Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowContextMenuStripNeededEventArgs.cs / 1305376 / DataGridViewRowContextMenuStripNeededEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; ///public class DataGridViewRowContextMenuStripNeededEventArgs : EventArgs { private int rowIndex; private ContextMenuStrip contextMenuStrip; /// public DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex) { if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; } internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip contextMenuStrip) : this(rowIndex) { this.contextMenuStrip = contextMenuStrip; } /// public int RowIndex { get { return this.rowIndex; } } /// public ContextMenuStrip ContextMenuStrip { get { return this.contextMenuStrip; } set { this.contextMenuStrip = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; ///public class DataGridViewRowContextMenuStripNeededEventArgs : EventArgs { private int rowIndex; private ContextMenuStrip contextMenuStrip; /// public DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex) { if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; } internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip contextMenuStrip) : this(rowIndex) { this.contextMenuStrip = contextMenuStrip; } /// public int RowIndex { get { return this.rowIndex; } } /// public ContextMenuStrip ContextMenuStrip { get { return this.contextMenuStrip; } set { this.contextMenuStrip = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ILGen.cs
- EmbossBitmapEffect.cs
- SHA256CryptoServiceProvider.cs
- Message.cs
- ImplicitInputBrush.cs
- XmlAttributeCollection.cs
- FlowNode.cs
- UnsafeNativeMethods.cs
- WebPartConnectionsEventArgs.cs
- WriteFileContext.cs
- StreamResourceInfo.cs
- Transform3D.cs
- RuleRef.cs
- OperationPickerDialog.cs
- RoutedPropertyChangedEventArgs.cs
- IRCollection.cs
- Int16KeyFrameCollection.cs
- Action.cs
- ToolboxItemSnapLineBehavior.cs
- PasswordTextContainer.cs
- Utils.cs
- EndPoint.cs
- TextReader.cs
- Int64Storage.cs
- ModuleElement.cs
- ListControlDesigner.cs
- QilPatternFactory.cs
- XmlNamedNodeMap.cs
- SmtpTransport.cs
- WebPartDisplayModeEventArgs.cs
- ReadOnlyDictionary.cs
- GridItemCollection.cs
- EventHandlersStore.cs
- RedirectionProxy.cs
- COAUTHIDENTITY.cs
- GridErrorDlg.cs
- ICollection.cs
- InputEventArgs.cs
- CachedPathData.cs
- Int32CAMarshaler.cs
- DataColumnCollection.cs
- XmlElement.cs
- RowUpdatedEventArgs.cs
- HebrewNumber.cs
- List.cs
- DynamicEndpoint.cs
- DateRangeEvent.cs
- DataGridLinkButton.cs
- BamlStream.cs
- entitydatasourceentitysetnameconverter.cs
- ProxyFragment.cs
- XmlAttributeProperties.cs
- ExpandCollapseProviderWrapper.cs
- NativeMethods.cs
- CollectionChangeEventArgs.cs
- TemplatedMailWebEventProvider.cs
- PlanCompilerUtil.cs
- WebPartExportVerb.cs
- SectionInput.cs
- ButtonPopupAdapter.cs
- GridViewUpdateEventArgs.cs
- ITreeGenerator.cs
- AdCreatedEventArgs.cs
- TextDecorationLocationValidation.cs
- grammarelement.cs
- HttpContext.cs
- DragDrop.cs
- PathFigureCollectionValueSerializer.cs
- SpecialNameAttribute.cs
- PermissionListSet.cs
- ButtonBase.cs
- PipelineComponent.cs
- QuadraticBezierSegment.cs
- Geometry.cs
- PropertyChangedEventArgs.cs
- XmlDocumentSchema.cs
- OperatingSystem.cs
- WebPartConnectionsConfigureVerb.cs
- SynchronizedKeyedCollection.cs
- SemanticResultValue.cs
- GradientStopCollection.cs
- _ConnectStream.cs
- Page.cs
- SQLSingleStorage.cs
- EllipseGeometry.cs
- RootBuilder.cs
- LicenseException.cs
- KnownBoxes.cs
- EntityException.cs
- SiteMapHierarchicalDataSourceView.cs
- SchemeSettingElement.cs
- EncodingDataItem.cs
- WindowsImpersonationContext.cs
- ConfigurationCollectionAttribute.cs
- XmlIncludeAttribute.cs
- WithParamAction.cs
- SequentialActivityDesigner.cs
- oledbmetadatacolumnnames.cs
- PrivilegeNotHeldException.cs
- UnsafeNativeMethods.cs