Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellValueEventArgs.cs / 1 / 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
- TraceContext.cs
- BrowserCapabilitiesFactoryBase.cs
- PerfService.cs
- StorageEntityContainerMapping.cs
- TextBreakpoint.cs
- TextBreakpoint.cs
- FormViewDeleteEventArgs.cs
- SoapEnumAttribute.cs
- Mapping.cs
- StrokeSerializer.cs
- MessageDecoder.cs
- XmlQueryType.cs
- RowUpdatedEventArgs.cs
- AVElementHelper.cs
- OrderByBuilder.cs
- GenericEnumerator.cs
- ProjectionPath.cs
- PasswordTextNavigator.cs
- PriorityChain.cs
- ProfileGroupSettingsCollection.cs
- unsafeIndexingFilterStream.cs
- EntityException.cs
- EntityTemplateUserControl.cs
- TableAutomationPeer.cs
- XmlSchemaObjectCollection.cs
- FreezableCollection.cs
- ComponentConverter.cs
- X509Certificate2Collection.cs
- OptimizerPatterns.cs
- DispatcherEventArgs.cs
- WSSecureConversation.cs
- TreeView.cs
- RowToFieldTransformer.cs
- FileUtil.cs
- ServiceProviders.cs
- WebZone.cs
- AnnotationStore.cs
- MSAAEventDispatcher.cs
- CqlLexerHelpers.cs
- _HelperAsyncResults.cs
- XmlSchemaObject.cs
- ThicknessKeyFrameCollection.cs
- DataGridViewSelectedCellCollection.cs
- SemanticKeyElement.cs
- SqlClientPermission.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Membership.cs
- RealProxy.cs
- CacheDependency.cs
- HttpProfileGroupBase.cs
- SymmetricCryptoHandle.cs
- FunctionNode.cs
- StringComparer.cs
- XmlSignatureManifest.cs
- UserInitiatedNavigationPermission.cs
- TextDecorationCollection.cs
- Viewport3DVisual.cs
- CheckBox.cs
- GPRECTF.cs
- TextBounds.cs
- SqlTriggerAttribute.cs
- TdsRecordBufferSetter.cs
- UInt16Converter.cs
- BitmapEffect.cs
- XpsPackagingException.cs
- EventListenerClientSide.cs
- WebPartCancelEventArgs.cs
- BuildProvidersCompiler.cs
- FontCacheLogic.cs
- OperandQuery.cs
- WindowsAuthenticationModule.cs
- SqlAliaser.cs
- SelectorAutomationPeer.cs
- CheckBoxRenderer.cs
- WebServicesInteroperability.cs
- HttpServerVarsCollection.cs
- Int32Converter.cs
- SignatureDescription.cs
- TdsParserStateObject.cs
- _ScatterGatherBuffers.cs
- RIPEMD160.cs
- TextEditorParagraphs.cs
- SymbolType.cs
- MasterPage.cs
- BindingExpressionUncommonField.cs
- DesigntimeLicenseContext.cs
- UnlockInstanceAsyncResult.cs
- Attributes.cs
- DNS.cs
- BitmapEffectGeneralTransform.cs
- DefaultProfileManager.cs
- WebBrowsableAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- RewritingValidator.cs
- UIElement.cs
- SizeIndependentAnimationStorage.cs
- SoapCodeExporter.cs
- ConfigurationValidatorAttribute.cs
- TraceFilter.cs
- SystemDiagnosticsSection.cs