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
- SecurityPolicySection.cs
- AssociationSetEnd.cs
- DataViewManagerListItemTypeDescriptor.cs
- ExecutedRoutedEventArgs.cs
- FontStretch.cs
- CancellationState.cs
- DataPagerCommandEventArgs.cs
- ItemCheckEvent.cs
- MarkupExtensionParser.cs
- CharConverter.cs
- KeyBinding.cs
- CAGDesigner.cs
- SchemaCollectionCompiler.cs
- ProjectionCamera.cs
- SmtpReplyReader.cs
- DataGridViewIntLinkedList.cs
- AudioFormatConverter.cs
- SimpleTypeResolver.cs
- EventArgs.cs
- path.cs
- SqlDataSourceTableQuery.cs
- ReachVisualSerializer.cs
- ListView.cs
- DrawingAttributesDefaultValueFactory.cs
- shaperfactoryquerycacheentry.cs
- UriTemplateDispatchFormatter.cs
- BadImageFormatException.cs
- SqlClientWrapperSmiStreamChars.cs
- Camera.cs
- ColorDialog.cs
- ToolStripLabel.cs
- Base64Encoding.cs
- Attributes.cs
- Overlapped.cs
- ToolStripGripRenderEventArgs.cs
- PointCollection.cs
- JavascriptCallbackResponseProperty.cs
- StringUtil.cs
- EndEvent.cs
- PassportAuthentication.cs
- CultureTableRecord.cs
- SecurityPolicySection.cs
- ElementFactory.cs
- EncoderReplacementFallback.cs
- WrappingXamlSchemaContext.cs
- HashCryptoHandle.cs
- newinstructionaction.cs
- FileUtil.cs
- GenerateTemporaryAssemblyTask.cs
- LongAverageAggregationOperator.cs
- FixedFindEngine.cs
- FontDifferentiator.cs
- SourceInterpreter.cs
- DelegateOutArgument.cs
- BindingMAnagerBase.cs
- HttpException.cs
- Focus.cs
- FixedDocumentSequencePaginator.cs
- ConnectionPoint.cs
- _SSPIWrapper.cs
- StrongName.cs
- MimeFormReflector.cs
- ComponentCollection.cs
- PrimitiveList.cs
- Symbol.cs
- WaitHandle.cs
- Hex.cs
- AttachedAnnotation.cs
- DynamicPropertyHolder.cs
- XPathEmptyIterator.cs
- RightsManagementEncryptionTransform.cs
- EntityDataSourceSelectingEventArgs.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- DBConcurrencyException.cs
- DataSourceControlBuilder.cs
- WebPartVerbCollection.cs
- InfoCardServiceInstallComponent.cs
- BamlLocalizer.cs
- HtmlContainerControl.cs
- SafeBitVector32.cs
- CommentEmitter.cs
- VisualStyleTypesAndProperties.cs
- ConnectionPointGlyph.cs
- ProviderCommandInfoUtils.cs
- EntityContainer.cs
- GeneralTransform3D.cs
- FastEncoder.cs
- FactoryGenerator.cs
- ITreeGenerator.cs
- AsyncOperation.cs
- RepeaterItemCollection.cs
- WmlLabelAdapter.cs
- StreamDocument.cs
- LinqDataSourceContextEventArgs.cs
- ScrollBarAutomationPeer.cs
- HashLookup.cs
- SourceSwitch.cs
- DataGridTextBoxColumn.cs
- SuppressMergeCheckAttribute.cs
- ClrPerspective.cs