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
- UTF8Encoding.cs
- CollectionViewProxy.cs
- ToolStripItem.cs
- HttpApplicationStateBase.cs
- XmlSchemaType.cs
- StringComparer.cs
- XmlCompatibilityReader.cs
- HostedElements.cs
- GPRECTF.cs
- ManagementObjectCollection.cs
- CompilationUnit.cs
- DataControlFieldCollection.cs
- SR.Designer.cs
- RegexMatch.cs
- TextRenderer.cs
- LineServices.cs
- FileInfo.cs
- DetailsViewPagerRow.cs
- BitmapEffectState.cs
- DataGridRowClipboardEventArgs.cs
- NavigationProgressEventArgs.cs
- ISFTagAndGuidCache.cs
- ADMembershipProvider.cs
- StreamWithDictionary.cs
- EventListener.cs
- InvokeHandlers.cs
- Int32.cs
- CloudCollection.cs
- BitmapEffectGeneralTransform.cs
- CompilerTypeWithParams.cs
- CompositeKey.cs
- MessagePropertyFilter.cs
- SqlNotificationEventArgs.cs
- FormsAuthenticationUserCollection.cs
- ObjectPropertyMapping.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- NestPullup.cs
- AssociatedControlConverter.cs
- DataServiceBehavior.cs
- DataBinding.cs
- ToolStripPanelCell.cs
- AutomationIdentifierGuids.cs
- XmlValueConverter.cs
- DirectoryLocalQuery.cs
- Byte.cs
- AssociationTypeEmitter.cs
- ACE.cs
- CharEntityEncoderFallback.cs
- RightsDocument.cs
- GifBitmapDecoder.cs
- EntityParameterCollection.cs
- DisplayNameAttribute.cs
- FixedFlowMap.cs
- MyContact.cs
- Operators.cs
- WasAdminWrapper.cs
- PropertyOrder.cs
- ConfigurationStrings.cs
- SystemFonts.cs
- ColorBlend.cs
- WindowsGraphicsWrapper.cs
- InputReportEventArgs.cs
- SymbolTable.cs
- Visual3D.cs
- DiagnosticTrace.cs
- GeometryConverter.cs
- BatchServiceHost.cs
- KeySpline.cs
- OracleColumn.cs
- ProcessHostFactoryHelper.cs
- PostBackTrigger.cs
- TextServicesPropertyRanges.cs
- XamlTreeBuilderBamlRecordWriter.cs
- PointAnimationUsingKeyFrames.cs
- CellConstantDomain.cs
- ExpressionParser.cs
- SemanticAnalyzer.cs
- XamlBuildTaskServices.cs
- Compiler.cs
- RowToFieldTransformer.cs
- Timer.cs
- TimeSpanSecondsConverter.cs
- PageAdapter.cs
- WebPartAuthorizationEventArgs.cs
- Executor.cs
- SimpleModelProvider.cs
- ParseHttpDate.cs
- DefaultPrintController.cs
- ExpressionConverter.cs
- OrderedDictionaryStateHelper.cs
- CodeAccessSecurityEngine.cs
- CodeRegionDirective.cs
- infer.cs
- EdmToObjectNamespaceMap.cs
- PropertyPushdownHelper.cs
- DesignTableCollection.cs
- RuleConditionDialog.cs
- SqlDelegatedTransaction.cs
- tooltip.cs
- MergePropertyDescriptor.cs