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
- SecurityTokenResolver.cs
- EventDescriptor.cs
- DataServiceHostFactory.cs
- ScaleTransform.cs
- ScrollData.cs
- FixedSOMLineRanges.cs
- SiteMapHierarchicalDataSourceView.cs
- DoubleAnimationUsingKeyFrames.cs
- ReliabilityContractAttribute.cs
- DiscoveryMessageProperty.cs
- CqlLexerHelpers.cs
- ValidatedControlConverter.cs
- WriterOutput.cs
- DataGridViewDataErrorEventArgs.cs
- CompatibleIComparer.cs
- IdentitySection.cs
- ADMembershipProvider.cs
- RepeatBehaviorConverter.cs
- RIPEMD160.cs
- FormCollection.cs
- DiffuseMaterial.cs
- GenericEnumConverter.cs
- KernelTypeValidation.cs
- Grammar.cs
- FileUtil.cs
- BasicExpressionVisitor.cs
- WindowsToolbar.cs
- ResourceDefaultValueAttribute.cs
- returneventsaver.cs
- WebServiceErrorEvent.cs
- SafeMILHandle.cs
- Rect3D.cs
- CurrencyWrapper.cs
- ChangeBlockUndoRecord.cs
- ResXBuildProvider.cs
- ReadOnlyDataSource.cs
- PixelShader.cs
- SharingService.cs
- WebConfigManager.cs
- ConstrainedDataObject.cs
- TextServicesProperty.cs
- XmlAttributes.cs
- XmlArrayAttribute.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- WebPartDisplayMode.cs
- DataViewSetting.cs
- MethodInfo.cs
- ExpandCollapsePattern.cs
- XPathArrayIterator.cs
- UnauthorizedAccessException.cs
- CallSiteHelpers.cs
- IndentTextWriter.cs
- CounterCreationDataCollection.cs
- SqlRowUpdatedEvent.cs
- AppDomainManager.cs
- Journal.cs
- CategoryList.cs
- BitmapEffect.cs
- SqlMethodCallConverter.cs
- SamlAuthenticationClaimResource.cs
- MeshGeometry3D.cs
- XsdValidatingReader.cs
- DebugHandleTracker.cs
- Point.cs
- DesignObjectWrapper.cs
- RenderCapability.cs
- InvalidFilterCriteriaException.cs
- HostingEnvironmentException.cs
- WebPartUtil.cs
- Normalization.cs
- XPathNodeList.cs
- DataBinding.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SystemIPv6InterfaceProperties.cs
- MethodMessage.cs
- figurelength.cs
- DataSourceProvider.cs
- ClientApiGenerator.cs
- AliasExpr.cs
- TypeGeneratedEventArgs.cs
- FactoryGenerator.cs
- DefaultAsyncDataDispatcher.cs
- SmtpReplyReaderFactory.cs
- NetworkCredential.cs
- InvalidateEvent.cs
- OleDbPropertySetGuid.cs
- IdentityReference.cs
- RegexCaptureCollection.cs
- WebBrowserNavigatingEventHandler.cs
- Selection.cs
- CacheAxisQuery.cs
- CodePropertyReferenceExpression.cs
- SqlAliasesReferenced.cs
- GPRECT.cs
- BufferedReadStream.cs
- MulticastOption.cs
- BCLDebug.cs
- SqlFunctionAttribute.cs
- DateTimeConstantAttribute.cs
- ExpressionDumper.cs