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
- GridViewDeletedEventArgs.cs
- RuleSetCollection.cs
- CommonObjectSecurity.cs
- OptimalTextSource.cs
- SafeRightsManagementSessionHandle.cs
- RIPEMD160Managed.cs
- EditingCoordinator.cs
- StringValidator.cs
- AutomationElementCollection.cs
- PropertyEmitterBase.cs
- ControlBuilderAttribute.cs
- XPathDocumentIterator.cs
- BuildManager.cs
- XmlHierarchicalDataSourceView.cs
- AmbientValueAttribute.cs
- ImageAttributes.cs
- GPStream.cs
- DataGridRowEventArgs.cs
- _PooledStream.cs
- SHA1CryptoServiceProvider.cs
- WindowsStartMenu.cs
- ColumnHeader.cs
- SqlCommand.cs
- CardSpaceSelector.cs
- ColorInterpolationModeValidation.cs
- WinFormsUtils.cs
- CollectionDataContractAttribute.cs
- ScrollEvent.cs
- odbcmetadatacolumnnames.cs
- SlipBehavior.cs
- GAC.cs
- MissingMethodException.cs
- FixedDocumentPaginator.cs
- PreviewKeyDownEventArgs.cs
- MailMessageEventArgs.cs
- DelegateTypeInfo.cs
- HotSpotCollection.cs
- TextEditorLists.cs
- safesecurityhelperavalon.cs
- MetadataProperty.cs
- XPathNavigatorKeyComparer.cs
- InputBuffer.cs
- CodeDomDesignerLoader.cs
- DesignTimeVisibleAttribute.cs
- ValueTable.cs
- XmlTypeMapping.cs
- TextChangedEventArgs.cs
- CustomGrammar.cs
- XmlWriterSettings.cs
- TextServicesCompartmentContext.cs
- PlanCompilerUtil.cs
- InputBuffer.cs
- _ConnectionGroup.cs
- Point.cs
- ServiceEndpoint.cs
- ProcessModelInfo.cs
- HyperLinkStyle.cs
- _LoggingObject.cs
- ApplicationHost.cs
- CompilationSection.cs
- webclient.cs
- TypeSystem.cs
- ConsoleCancelEventArgs.cs
- UnsafeNativeMethodsTablet.cs
- Utils.cs
- FtpCachePolicyElement.cs
- PointValueSerializer.cs
- _FtpControlStream.cs
- DocumentGrid.cs
- FileLoadException.cs
- BoundingRectTracker.cs
- Brush.cs
- MemberJoinTreeNode.cs
- PipelineModuleStepContainer.cs
- HandoffBehavior.cs
- _ShellExpression.cs
- OledbConnectionStringbuilder.cs
- QueryOptionExpression.cs
- UnionExpr.cs
- ConfigXmlCDataSection.cs
- EmptyReadOnlyDictionaryInternal.cs
- FontDialog.cs
- WebColorConverter.cs
- FastEncoder.cs
- Selection.cs
- KerberosReceiverSecurityToken.cs
- CodeTypeParameterCollection.cs
- WebPartActionVerb.cs
- UInt32Converter.cs
- WebPartTransformerAttribute.cs
- HistoryEventArgs.cs
- DeflateStreamAsyncResult.cs
- IsolatedStorage.cs
- HyperLinkStyle.cs
- AnnotationComponentChooser.cs
- DragDrop.cs
- TwoPhaseCommitProxy.cs
- RuntimeResourceSet.cs
- GridLengthConverter.cs
- OdbcEnvironment.cs