Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BamlLocalizableResourceKey.cs
- xsdvalidator.cs
- ValueType.cs
- Point3DCollectionConverter.cs
- EntitySqlQueryCacheKey.cs
- MessageTraceRecord.cs
- DrawingGroup.cs
- DataSourceDesigner.cs
- MouseCaptureWithinProperty.cs
- CorrelationService.cs
- ComplexType.cs
- TransformerTypeCollection.cs
- WindowsListViewGroupHelper.cs
- EntityDataSourceEntitySetNameItem.cs
- NavigationExpr.cs
- SelectingProviderEventArgs.cs
- TemplateComponentConnector.cs
- DefaultAuthorizationContext.cs
- ConnectionPoint.cs
- PageRequestManager.cs
- DataGridTableCollection.cs
- GroupQuery.cs
- PeerResolverMode.cs
- TakeQueryOptionExpression.cs
- DataListItemCollection.cs
- TemplateNameScope.cs
- ButtonRenderer.cs
- FileLogRecordEnumerator.cs
- FixedSOMTableCell.cs
- CacheEntry.cs
- PropertyGridDesigner.cs
- AVElementHelper.cs
- MemberPath.cs
- StorageComplexPropertyMapping.cs
- BoolExpr.cs
- BaseTemplateBuildProvider.cs
- HttpWrapper.cs
- WebPartConnectVerb.cs
- VirtualPathData.cs
- MetadataArtifactLoaderCompositeFile.cs
- BindingValueChangedEventArgs.cs
- EarlyBoundInfo.cs
- ImportedPolicyConversionContext.cs
- ToolBar.cs
- WindowsBrush.cs
- OleAutBinder.cs
- TagPrefixCollection.cs
- FactoryMaker.cs
- DataGridRowHeader.cs
- Baml2006ReaderContext.cs
- NamedPipeWorkerProcess.cs
- TraceContextRecord.cs
- MarkedHighlightComponent.cs
- RegionData.cs
- EdmConstants.cs
- DetailsViewRow.cs
- ConnectionStringEditor.cs
- AnnotationResourceCollection.cs
- GridViewColumnHeaderAutomationPeer.cs
- DelegatingTypeDescriptionProvider.cs
- KeyNotFoundException.cs
- SchemaEntity.cs
- SamlConstants.cs
- XamlSerializerUtil.cs
- CodeIdentifier.cs
- FtpWebResponse.cs
- CompositeTypefaceMetrics.cs
- ExpressionLexer.cs
- MembershipValidatePasswordEventArgs.cs
- MsmqTransportElement.cs
- DropSource.cs
- WorkflowItemsPresenter.cs
- ReferencedAssembly.cs
- WebBrowserUriTypeConverter.cs
- XsdCachingReader.cs
- ScriptingWebServicesSectionGroup.cs
- HotSpot.cs
- GorillaCodec.cs
- PagePropertiesChangingEventArgs.cs
- EntityTypeBase.cs
- XmlSchemaGroupRef.cs
- Rfc2898DeriveBytes.cs
- ImageAutomationPeer.cs
- TextModifierScope.cs
- ProtectedConfigurationProviderCollection.cs
- ObjectView.cs
- CodeTypeMember.cs
- SelectionListComponentEditor.cs
- FirstMatchCodeGroup.cs
- Calendar.cs
- SkipStoryboardToFill.cs
- VisualStateChangedEventArgs.cs
- ClientSponsor.cs
- RolePrincipal.cs
- InfoCardSymmetricCrypto.cs
- ToolBar.cs
- UnionCodeGroup.cs
- WCFModelStrings.Designer.cs
- mda.cs
- WebPartMovingEventArgs.cs