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
- XmlComplianceUtil.cs
- ProfessionalColors.cs
- LineInfo.cs
- ComplexTypeEmitter.cs
- WebPartChrome.cs
- Pkcs7Recipient.cs
- WebServiceData.cs
- EmptyEnumerator.cs
- EventlogProvider.cs
- FormViewDeletedEventArgs.cs
- FixUp.cs
- GlobalProxySelection.cs
- EntityDataSourceReferenceGroup.cs
- HttpDebugHandler.cs
- DataTableReaderListener.cs
- TypedTableBase.cs
- BreakSafeBase.cs
- EqualityComparer.cs
- Deflater.cs
- _ProxyRegBlob.cs
- StringCollectionEditor.cs
- PropertyItem.cs
- ProcessModule.cs
- ExpressionBuilder.cs
- BoolExpressionVisitors.cs
- UnsafeNativeMethods.cs
- MediaPlayer.cs
- DateTimeOffset.cs
- GridViewSortEventArgs.cs
- DataSvcMapFile.cs
- Point4DConverter.cs
- CodeCommentStatementCollection.cs
- HandlerMappingMemo.cs
- ParameterBuilder.cs
- KnownIds.cs
- OutputCacheProfileCollection.cs
- EventTrigger.cs
- WhitespaceRuleReader.cs
- ReliableDuplexSessionChannel.cs
- SafeSystemMetrics.cs
- NativeMethods.cs
- LassoHelper.cs
- OneOf.cs
- DataBoundLiteralControl.cs
- RegexTypeEditor.cs
- WindowsRichEdit.cs
- Lease.cs
- BlockUIContainer.cs
- Polyline.cs
- EntityContainerRelationshipSetEnd.cs
- HScrollBar.cs
- dbenumerator.cs
- PbrsForward.cs
- PointConverter.cs
- DataObjectEventArgs.cs
- UnitySerializationHolder.cs
- RootProfilePropertySettingsCollection.cs
- AccessText.cs
- RedistVersionInfo.cs
- ping.cs
- TdsEnums.cs
- HtmlDocument.cs
- ContentType.cs
- DataContractSerializerSection.cs
- WindowsListViewGroup.cs
- ISAPIApplicationHost.cs
- AccessDataSourceDesigner.cs
- ToolboxItemFilterAttribute.cs
- wmiprovider.cs
- SafeLocalMemHandle.cs
- ILGenerator.cs
- GeometryCombineModeValidation.cs
- ComponentResourceKey.cs
- AutomationPeer.cs
- followingsibling.cs
- DependentTransaction.cs
- XmlSchemaImporter.cs
- LowerCaseStringConverter.cs
- PasswordDeriveBytes.cs
- PipelineComponent.cs
- TextWriterTraceListener.cs
- RuleSettingsCollection.cs
- AdRotatorDesigner.cs
- ModelVisual3D.cs
- dataSvcMapFileLoader.cs
- OracleDataReader.cs
- GetReadStreamResult.cs
- XAMLParseException.cs
- AffineTransform3D.cs
- GenericEnumConverter.cs
- SafeBitVector32.cs
- EntitySetBase.cs
- CustomCategoryAttribute.cs
- HwndMouseInputProvider.cs
- DataMemberListEditor.cs
- XslCompiledTransform.cs
- NativeActivityContext.cs
- OrderedDictionaryStateHelper.cs
- ChannelSinkStacks.cs
- HtmlUtf8RawTextWriter.cs