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
- Identifier.cs
- XmlQueryType.cs
- OverflowException.cs
- ZipIOExtraFieldZip64Element.cs
- IListConverters.cs
- BrowserDefinitionCollection.cs
- ObjectHandle.cs
- HasCopySemanticsAttribute.cs
- EnvelopedSignatureTransform.cs
- SqlReferenceCollection.cs
- HttpCacheVaryByContentEncodings.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- DataGridViewTopRowAccessibleObject.cs
- TrustLevelCollection.cs
- WindowsFormsHelpers.cs
- UmAlQuraCalendar.cs
- XmlSchemaSimpleTypeRestriction.cs
- NullableFloatAverageAggregationOperator.cs
- ISFTagAndGuidCache.cs
- CompModSwitches.cs
- WebPartEditorOkVerb.cs
- ExpandableObjectConverter.cs
- Config.cs
- ServiceConfigurationTraceRecord.cs
- Perspective.cs
- Authorization.cs
- DiffuseMaterial.cs
- StringResourceManager.cs
- CompositeScriptReference.cs
- SubclassTypeValidatorAttribute.cs
- TemporaryBitmapFile.cs
- NameValuePair.cs
- FeatureSupport.cs
- EpmContentDeSerializer.cs
- handlecollector.cs
- MessagePartProtectionMode.cs
- Container.cs
- CollectionViewGroupInternal.cs
- XmlSchemaDocumentation.cs
- SoapExtensionTypeElement.cs
- GeneralTransformGroup.cs
- ReferencedAssemblyResolver.cs
- DataGridRowHeader.cs
- XmlValidatingReaderImpl.cs
- XmlSchema.cs
- CounterCreationDataCollection.cs
- ExtensionWindow.cs
- MetadataUtilsSmi.cs
- XmlQueryRuntime.cs
- CustomAssemblyResolver.cs
- FilterException.cs
- _Win32.cs
- RegexReplacement.cs
- HtmlImage.cs
- TemplateBindingExtension.cs
- AspNetRouteServiceHttpHandler.cs
- PropertyTab.cs
- categoryentry.cs
- TextEditorDragDrop.cs
- FilterQuery.cs
- XmlSchemaChoice.cs
- TreeSet.cs
- TextChange.cs
- KnownTypes.cs
- BreakRecordTable.cs
- coordinatorscratchpad.cs
- __Filters.cs
- HttpApplicationFactory.cs
- ExpressionBuilderContext.cs
- FamilyTypefaceCollection.cs
- HttpModuleAction.cs
- _IPv6Address.cs
- DataRelationPropertyDescriptor.cs
- GiveFeedbackEventArgs.cs
- FreezableOperations.cs
- XmlHelper.cs
- SyncOperationState.cs
- Converter.cs
- HttpResponseInternalWrapper.cs
- ContainerParaClient.cs
- ComponentSerializationService.cs
- SecurityElement.cs
- X509ImageLogo.cs
- SelectorAutomationPeer.cs
- ApplicationBuildProvider.cs
- PropertyItem.cs
- StoreAnnotationsMap.cs
- DataKeyArray.cs
- ToolStripContainerActionList.cs
- ListSortDescriptionCollection.cs
- Directory.cs
- ContextQuery.cs
- BaseTemplateParser.cs
- CollectionAdapters.cs
- TemplateManager.cs
- RouteCollection.cs
- ToolBar.cs
- SmiEventStream.cs
- RevocationPoint.cs
- ConfigurationSection.cs