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 / 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
- DisplayToken.cs
- CacheAxisQuery.cs
- RadioButtonAutomationPeer.cs
- TypeExtensionSerializer.cs
- BufferCache.cs
- LinearKeyFrames.cs
- NamespaceEmitter.cs
- XmlResolver.cs
- Sql8ConformanceChecker.cs
- Source.cs
- TemplateField.cs
- QueryCacheEntry.cs
- ServicePointManagerElement.cs
- PropertyChangingEventArgs.cs
- TailCallAnalyzer.cs
- DataContractJsonSerializerOperationFormatter.cs
- PageThemeParser.cs
- PointCollectionValueSerializer.cs
- PersistenceException.cs
- SafeLibraryHandle.cs
- EntityDataSourceContextDisposingEventArgs.cs
- XmlSchemaExporter.cs
- PeerChannelFactory.cs
- TemplateBamlTreeBuilder.cs
- TemplatePartAttribute.cs
- DATA_BLOB.cs
- SpellerHighlightLayer.cs
- ConnectionStringsSection.cs
- ReachBasicContext.cs
- ObjectTag.cs
- RadioButtonStandardAdapter.cs
- RoutedCommand.cs
- DrawingDrawingContext.cs
- SmtpLoginAuthenticationModule.cs
- IisTraceWebEventProvider.cs
- NavigationHelper.cs
- Quaternion.cs
- ConfigurationStrings.cs
- ConnectionsZone.cs
- TemplatedAdorner.cs
- AspCompat.cs
- MimeFormatter.cs
- FormView.cs
- ThreadInterruptedException.cs
- MediaPlayer.cs
- Rijndael.cs
- Vector3DAnimationUsingKeyFrames.cs
- SimpleRecyclingCache.cs
- NativeMethods.cs
- BitmapEditor.cs
- DeclarativeCatalogPart.cs
- ColorConverter.cs
- ImageSource.cs
- ThemeDictionaryExtension.cs
- ContentHostHelper.cs
- TableCellCollection.cs
- PerformanceCounterPermission.cs
- SystemTcpConnection.cs
- XpsColorContext.cs
- DataRecord.cs
- TypeUsageBuilder.cs
- MultilineStringConverter.cs
- Type.cs
- UpdateProgress.cs
- SoapFault.cs
- Stack.cs
- FormClosingEvent.cs
- EnumValAlphaComparer.cs
- ProxyWebPartManager.cs
- SerializerWriterEventHandlers.cs
- DetailsViewRowCollection.cs
- Literal.cs
- Triplet.cs
- Stream.cs
- MemoryMappedViewStream.cs
- StrokeNodeOperations2.cs
- QueryableFilterUserControl.cs
- TrackingMemoryStream.cs
- MonikerSyntaxException.cs
- ConfigXmlCDataSection.cs
- SelectedGridItemChangedEvent.cs
- HostSecurityManager.cs
- ImportException.cs
- _ProxyChain.cs
- SessionPageStatePersister.cs
- DateTimeHelper.cs
- ParamArrayAttribute.cs
- SchemaInfo.cs
- FixedDSBuilder.cs
- SimpleWebHandlerParser.cs
- CodeParameterDeclarationExpression.cs
- AssertFilter.cs
- RenamedEventArgs.cs
- ImportCatalogPart.cs
- EntitySqlQueryCacheEntry.cs
- AuthenticationManager.cs
- GeneralTransform.cs
- CursorConverter.cs
- SmtpTransport.cs
- MapPathBasedVirtualPathProvider.cs