Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SmiEventSink_DeferedProcessing.cs
- OdbcDataAdapter.cs
- XmlNotation.cs
- DispatchChannelSink.cs
- SetterBaseCollection.cs
- LinearGradientBrush.cs
- DelegateBodyWriter.cs
- Point3DKeyFrameCollection.cs
- TypeConverter.cs
- ControlParameter.cs
- EntityViewGenerationAttribute.cs
- BaseAppDomainProtocolHandler.cs
- ClientSettingsProvider.cs
- RegisteredArrayDeclaration.cs
- ResolveNameEventArgs.cs
- ProviderBase.cs
- IndicFontClient.cs
- ContextProperty.cs
- GPStream.cs
- ExternalFile.cs
- Directory.cs
- RegexMatchCollection.cs
- DirectoryLocalQuery.cs
- SafeFileMappingHandle.cs
- followingquery.cs
- ItemsControlAutomationPeer.cs
- WorkBatch.cs
- OptimalTextSource.cs
- DataGridViewRowsAddedEventArgs.cs
- JsonServiceDocumentSerializer.cs
- SmiConnection.cs
- SchemaDeclBase.cs
- TextRange.cs
- IImplicitResourceProvider.cs
- ReferenceEqualityComparer.cs
- Polyline.cs
- FilterableAttribute.cs
- XPathArrayIterator.cs
- TextEffectCollection.cs
- CompleteWizardStep.cs
- Button.cs
- TypeNameConverter.cs
- EditCommandColumn.cs
- XmlImplementation.cs
- EventLog.cs
- CurrencyWrapper.cs
- ForEachAction.cs
- OdbcDataReader.cs
- XmlSchemaImport.cs
- CodeGeneratorOptions.cs
- TextLineResult.cs
- TableSectionStyle.cs
- NameNode.cs
- BufferAllocator.cs
- QueryStatement.cs
- SchemaImporterExtensionElement.cs
- ScrollBar.cs
- TextParaClient.cs
- ExpressionNode.cs
- DecimalStorage.cs
- ComponentEditorPage.cs
- DataGridTablesFactory.cs
- EncodingFallbackAwareXmlTextWriter.cs
- XmlSchemaAttributeGroupRef.cs
- MatrixUtil.cs
- SizeF.cs
- OracleException.cs
- SortExpressionBuilder.cs
- BitmapCodecInfo.cs
- VectorCollection.cs
- SqlDelegatedTransaction.cs
- XslNumber.cs
- Highlights.cs
- BaseTemplateBuildProvider.cs
- InternalConfigEventArgs.cs
- QueryInterceptorAttribute.cs
- PageCodeDomTreeGenerator.cs
- ModuleElement.cs
- Point.cs
- RowToParametersTransformer.cs
- StylusSystemGestureEventArgs.cs
- SafeRightsManagementEnvironmentHandle.cs
- TextServicesDisplayAttribute.cs
- TextHidden.cs
- DetailsViewUpdatedEventArgs.cs
- Accessors.cs
- TextEmbeddedObject.cs
- SoapSchemaExporter.cs
- NetSectionGroup.cs
- HwndAppCommandInputProvider.cs
- RenderingBiasValidation.cs
- HwndSubclass.cs
- StorageEntityContainerMapping.cs
- FileClassifier.cs
- XmlSchemaAll.cs
- Type.cs
- UpDownEvent.cs
- InvalidOperationException.cs
- ImageAnimator.cs
- ArithmeticLiteral.cs