Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellValueEventArgs.cs / 1305376 / DataGridViewCellValueEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Diagnostics;
///
public class DataGridViewCellValueEventArgs : EventArgs
{
private int rowIndex, columnIndex;
private object val;
internal DataGridViewCellValueEventArgs()
{
this.columnIndex = this.rowIndex = -1;
}
///
public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex)
{
if (columnIndex < 0)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < 0)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.rowIndex = rowIndex;
this.columnIndex = columnIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
///
public object Value
{
get
{
return this.val;
}
set
{
this.val = value;
}
}
internal void SetProperties(int columnIndex, int rowIndex, object value)
{
Debug.Assert(columnIndex >= -1);
Debug.Assert(rowIndex >= -1);
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
this.val = 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 DataGridViewCellValueEventArgs : EventArgs
{
private int rowIndex, columnIndex;
private object val;
internal DataGridViewCellValueEventArgs()
{
this.columnIndex = this.rowIndex = -1;
}
///
public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex)
{
if (columnIndex < 0)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < 0)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.rowIndex = rowIndex;
this.columnIndex = columnIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
///
public object Value
{
get
{
return this.val;
}
set
{
this.val = value;
}
}
internal void SetProperties(int columnIndex, int rowIndex, object value)
{
Debug.Assert(columnIndex >= -1);
Debug.Assert(rowIndex >= -1);
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
this.val = 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
- DependencySource.cs
- InheritedPropertyChangedEventArgs.cs
- PropertyEmitterBase.cs
- SessionStateContainer.cs
- AnimationStorage.cs
- ComPlusAuthorization.cs
- XmlDocumentType.cs
- LinqDataSourceContextEventArgs.cs
- QueueProcessor.cs
- HostedTransportConfigurationBase.cs
- ObjectQueryExecutionPlan.cs
- MarkupCompiler.cs
- ReachDocumentPageSerializerAsync.cs
- IFlowDocumentViewer.cs
- EventMappingSettingsCollection.cs
- DataBoundControlHelper.cs
- BoolExpression.cs
- XmlText.cs
- ConfigurationPropertyCollection.cs
- SizeKeyFrameCollection.cs
- SerializationSectionGroup.cs
- EmptyEnumerator.cs
- StringHandle.cs
- Speller.cs
- PropertyTabChangedEvent.cs
- DLinqColumnProvider.cs
- GradientStop.cs
- SecurityTokenResolver.cs
- FirstMatchCodeGroup.cs
- SynchronizedDispatch.cs
- FileReservationCollection.cs
- Dictionary.cs
- SqlInfoMessageEvent.cs
- OutputCacheSettings.cs
- ValueQuery.cs
- SafeFileMapViewHandle.cs
- _Events.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ToolTipService.cs
- DataGridTextBoxColumn.cs
- XPathItem.cs
- WindowsStartMenu.cs
- Object.cs
- DataListCommandEventArgs.cs
- PackageFilter.cs
- PenThread.cs
- Keyboard.cs
- FileInfo.cs
- BrushMappingModeValidation.cs
- UIElement.cs
- RuntimeIdentifierPropertyAttribute.cs
- DefaultMemberAttribute.cs
- ResXBuildProvider.cs
- ExpressionBuilderCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- ParentUndoUnit.cs
- DictionaryCustomTypeDescriptor.cs
- baseaxisquery.cs
- CommandHelper.cs
- MemberInfoSerializationHolder.cs
- EnumerableCollectionView.cs
- ReferentialConstraint.cs
- FormViewPagerRow.cs
- TypeToken.cs
- DesignerWithHeader.cs
- ListControl.cs
- Marshal.cs
- RenameRuleObjectDialog.Designer.cs
- XmlBaseWriter.cs
- TypeBrowser.xaml.cs
- XslTransform.cs
- ProfilePropertySettings.cs
- ReferencedCollectionType.cs
- AttributeAction.cs
- XmlSchemaComplexContentRestriction.cs
- DnsPermission.cs
- ComboBox.cs
- IPGlobalProperties.cs
- HighlightVisual.cs
- Win32Exception.cs
- DataGridViewRow.cs
- ToolboxItemSnapLineBehavior.cs
- CodeGenerator.cs
- PageCache.cs
- CompositeFontInfo.cs
- TypeConverter.cs
- DataBindingExpressionBuilder.cs
- ThreadExceptionEvent.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- TrimSurroundingWhitespaceAttribute.cs
- AbstractExpressions.cs
- KeyGestureValueSerializer.cs
- OSFeature.cs
- TextCompositionEventArgs.cs
- ConfigXmlWhitespace.cs
- InputReport.cs
- ListMarkerSourceInfo.cs
- ContextMenuAutomationPeer.cs
- ComponentConverter.cs
- BitmapFrame.cs