Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellFormattingEventArgs.cs / 1 / DataGridViewCellFormattingEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Drawing; using System.ComponentModel; ///public class DataGridViewCellFormattingEventArgs : ConvertEventArgs { private int columnIndex, rowIndex; private DataGridViewCellStyle cellStyle; private bool formattingApplied; /// public DataGridViewCellFormattingEventArgs(int columnIndex, int rowIndex, object value, Type desiredType, DataGridViewCellStyle cellStyle) : base(value, desiredType) { if (columnIndex < -1) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.cellStyle = cellStyle; } /// public DataGridViewCellStyle CellStyle { get { return this.cellStyle; } set { this.cellStyle = value; } } /// public int ColumnIndex { get { return this.columnIndex; } } /// public bool FormattingApplied { get { return this.formattingApplied; } set { this.formattingApplied = value; } } /// public int RowIndex { get { return this.rowIndex; } } } } // 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.Drawing; using System.ComponentModel; ///public class DataGridViewCellFormattingEventArgs : ConvertEventArgs { private int columnIndex, rowIndex; private DataGridViewCellStyle cellStyle; private bool formattingApplied; /// public DataGridViewCellFormattingEventArgs(int columnIndex, int rowIndex, object value, Type desiredType, DataGridViewCellStyle cellStyle) : base(value, desiredType) { if (columnIndex < -1) { throw new ArgumentOutOfRangeException("columnIndex"); } if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.columnIndex = columnIndex; this.rowIndex = rowIndex; this.cellStyle = cellStyle; } /// public DataGridViewCellStyle CellStyle { get { return this.cellStyle; } set { this.cellStyle = value; } } /// public int ColumnIndex { get { return this.columnIndex; } } /// public bool FormattingApplied { get { return this.formattingApplied; } set { this.formattingApplied = value; } } /// public int RowIndex { get { return this.rowIndex; } } } } // 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
- ListViewItemEventArgs.cs
- DbConnectionPoolCounters.cs
- Operator.cs
- XmlBinaryReader.cs
- SettingsPropertyWrongTypeException.cs
- TransactionWaitAsyncResult.cs
- InstanceData.cs
- TextTreeInsertUndoUnit.cs
- DateTimeConverter.cs
- BuildDependencySet.cs
- FixedPosition.cs
- CursorConverter.cs
- CopyNamespacesAction.cs
- TimeZoneNotFoundException.cs
- DataFormat.cs
- EncodingStreamWrapper.cs
- CursorConverter.cs
- ImageCreator.cs
- DataObjectEventArgs.cs
- HtmlInputButton.cs
- ConnectivityStatus.cs
- Single.cs
- ProcessModelInfo.cs
- CompilationUnit.cs
- FactoryGenerator.cs
- StylusPointDescription.cs
- CompilationLock.cs
- CharAnimationBase.cs
- OdbcHandle.cs
- recordstatefactory.cs
- CodeTypeReferenceExpression.cs
- TranslateTransform.cs
- IncrementalReadDecoders.cs
- PageVisual.cs
- Axis.cs
- HitTestWithGeometryDrawingContextWalker.cs
- AdornerPresentationContext.cs
- Style.cs
- VoiceChangeEventArgs.cs
- SqlVisitor.cs
- CodeDirectoryCompiler.cs
- IPPacketInformation.cs
- HasCopySemanticsAttribute.cs
- typedescriptorpermissionattribute.cs
- _SslSessionsCache.cs
- ButtonRenderer.cs
- DataGridViewCellParsingEventArgs.cs
- Metadata.cs
- ExceptionHandlerDesigner.cs
- PasswordBoxAutomationPeer.cs
- CellCreator.cs
- SingleStorage.cs
- StylusEditingBehavior.cs
- CfgParser.cs
- BaseResourcesBuildProvider.cs
- BackStopAuthenticationModule.cs
- CodeLabeledStatement.cs
- IApplicationTrustManager.cs
- WorkflowDesignerColors.cs
- FontFamily.cs
- EncryptedData.cs
- HelpKeywordAttribute.cs
- SQLDecimal.cs
- CodePropertyReferenceExpression.cs
- NumberSubstitution.cs
- XmlSchemaSimpleTypeRestriction.cs
- XDeferredAxisSource.cs
- UnSafeCharBuffer.cs
- XmlHierarchicalEnumerable.cs
- RawMouseInputReport.cs
- ObjectQueryState.cs
- NumberEdit.cs
- SplineKeyFrames.cs
- AssemblyResourceLoader.cs
- UnsafeNetInfoNativeMethods.cs
- RecordConverter.cs
- BeginGetFileNameFromUserRequest.cs
- LinqToSqlWrapper.cs
- IntSecurity.cs
- XmlUrlResolver.cs
- DbParameterHelper.cs
- DateTimeValueSerializer.cs
- QilExpression.cs
- DataGridViewCellEventArgs.cs
- TypeGenericEnumerableViewSchema.cs
- ControlAdapter.cs
- ISAPIApplicationHost.cs
- XhtmlStyleClass.cs
- CompatibleComparer.cs
- TemplateControlCodeDomTreeGenerator.cs
- filewebresponse.cs
- VectorValueSerializer.cs
- TextProperties.cs
- ReferentialConstraint.cs
- EditorAttributeInfo.cs
- SqlFileStream.cs
- PeerSecurityHelpers.cs
- EventSinkHelperWriter.cs
- SafeViewOfFileHandle.cs
- DbConnectionPoolOptions.cs