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
- HtmlEmptyTagControlBuilder.cs
- BufferedGraphics.cs
- CreatingCookieEventArgs.cs
- SharedMemory.cs
- QuaternionRotation3D.cs
- XmlSchemaType.cs
- AuthorizationRuleCollection.cs
- Transform3DCollection.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- DataConnectionHelper.cs
- DataServiceQueryException.cs
- StreamInfo.cs
- CacheEntry.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- DateTimeConstantAttribute.cs
- SafeNativeMethodsOther.cs
- TogglePattern.cs
- BinaryFormatterWriter.cs
- AddInStore.cs
- SpStreamWrapper.cs
- XmlQualifiedNameTest.cs
- EndOfStreamException.cs
- ColorAnimationBase.cs
- TextRangeAdaptor.cs
- UserValidatedEventArgs.cs
- CheckBoxAutomationPeer.cs
- CodeSnippetStatement.cs
- RemoteDebugger.cs
- ControlEvent.cs
- Int16KeyFrameCollection.cs
- HitTestParameters.cs
- SmiTypedGetterSetter.cs
- TrustLevelCollection.cs
- HtmlGenericControl.cs
- BatchParser.cs
- ConnectionConsumerAttribute.cs
- InteropAutomationProvider.cs
- ActivityDesignerLayoutSerializers.cs
- WebConfigurationHostFileChange.cs
- ExceptionRoutedEventArgs.cs
- GridViewColumn.cs
- ClientScriptManagerWrapper.cs
- TCEAdapterGenerator.cs
- PopupRoot.cs
- ObjectStateManagerMetadata.cs
- ErrorFormatter.cs
- XsltArgumentList.cs
- ContentWrapperAttribute.cs
- GeneratedView.cs
- uribuilder.cs
- SiteMapDataSourceView.cs
- CodeSnippetStatement.cs
- HeaderUtility.cs
- Atom10FormatterFactory.cs
- ConfigXmlWhitespace.cs
- FlowLayout.cs
- LogReservationCollection.cs
- AttributeCollection.cs
- RoleGroup.cs
- CalculatedColumn.cs
- ListenerTraceUtility.cs
- InternalCache.cs
- AmbiguousMatchException.cs
- MetadataItemEmitter.cs
- AuthenticationModuleElement.cs
- CodeTypeParameter.cs
- RenamedEventArgs.cs
- DataBoundControlAdapter.cs
- FrameworkElementAutomationPeer.cs
- XmlDictionary.cs
- XmlWriterTraceListener.cs
- Html32TextWriter.cs
- TextLineResult.cs
- PreloadHost.cs
- ResourcePermissionBase.cs
- ObjectDataSourceSelectingEventArgs.cs
- SingleStorage.cs
- UIElement3D.cs
- LoadRetryStrategyFactory.cs
- CompilerTypeWithParams.cs
- DecoratedNameAttribute.cs
- LayoutDump.cs
- DeviceContext.cs
- KeyFrames.cs
- SynchronizationContext.cs
- PerformanceCountersElement.cs
- TextAutomationPeer.cs
- EpmSyndicationContentSerializer.cs
- Translator.cs
- MostlySingletonList.cs
- MessageQueuePermissionEntryCollection.cs
- BinaryCommonClasses.cs
- VisualBrush.cs
- DesignRelationCollection.cs
- SqlMethodCallConverter.cs
- SelectionProviderWrapper.cs
- SQLBinaryStorage.cs
- FontFamilyConverter.cs
- GraphicsContainer.cs
- ToolboxItemFilterAttribute.cs