Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- BitmapPalette.cs
- RemoveStoryboard.cs
- ServiceInfo.cs
- IntegerFacetDescriptionElement.cs
- UniqueIdentifierService.cs
- WpfSharedBamlSchemaContext.cs
- OutOfProcStateClientManager.cs
- StateChangeEvent.cs
- XPathScanner.cs
- KeyboardEventArgs.cs
- UnsafeNativeMethods.cs
- MethodBuilderInstantiation.cs
- EnvironmentPermission.cs
- HandleValueEditor.cs
- TypeResolvingOptionsAttribute.cs
- AliasedSlot.cs
- WebPartPersonalization.cs
- EntityDataSourceChangedEventArgs.cs
- HtmlElement.cs
- ExtensionDataObject.cs
- UnknownWrapper.cs
- EndOfStreamException.cs
- WindowsListViewScroll.cs
- TextServicesDisplayAttributePropertyRanges.cs
- EdmEntityTypeAttribute.cs
- HideDisabledControlAdapter.cs
- ScaleTransform3D.cs
- QfeChecker.cs
- ExpressionBinding.cs
- CapabilitiesSection.cs
- NullableIntMinMaxAggregationOperator.cs
- ImageButton.cs
- SourceFilter.cs
- WindowProviderWrapper.cs
- SchemaImporterExtension.cs
- SafeNativeMethods.cs
- Context.cs
- XhtmlBasicCommandAdapter.cs
- PasswordPropertyTextAttribute.cs
- TraceRecord.cs
- _AutoWebProxyScriptHelper.cs
- ModelPerspective.cs
- BitArray.cs
- MessageBox.cs
- CommonProperties.cs
- SubqueryRules.cs
- DataGridGeneralPage.cs
- PathSegmentCollection.cs
- SchemaInfo.cs
- UnsafeNativeMethods.cs
- BaseTemplateCodeDomTreeGenerator.cs
- RSAOAEPKeyExchangeDeformatter.cs
- WebPermission.cs
- StructuredTypeEmitter.cs
- XmlReader.cs
- Models.cs
- ValueQuery.cs
- ExplicitDiscriminatorMap.cs
- WebPartsSection.cs
- HtmlLink.cs
- TextOptions.cs
- XmlAnyElementAttributes.cs
- BrowsableAttribute.cs
- WebPartChrome.cs
- EventProviderWriter.cs
- SeverityFilter.cs
- CustomWebEventKey.cs
- FlatButtonAppearance.cs
- SQLBoolean.cs
- TextPatternIdentifiers.cs
- DesignerActionList.cs
- Timer.cs
- _UriSyntax.cs
- GeneratedCodeAttribute.cs
- LambdaCompiler.Expressions.cs
- List.cs
- AuthorizationContext.cs
- PowerModeChangedEventArgs.cs
- GPPOINT.cs
- CssStyleCollection.cs
- DesignOnlyAttribute.cs
- ClaimSet.cs
- JobDuplex.cs
- FontNamesConverter.cs
- TraceSource.cs
- QueueProcessor.cs
- RelationshipWrapper.cs
- ZipFileInfoCollection.cs
- BrowserDefinitionCollection.cs
- HttpStreamFormatter.cs
- IconBitmapDecoder.cs
- IdleTimeoutMonitor.cs
- ClosableStream.cs
- StrongTypingException.cs
- PageParserFilter.cs
- PathFigureCollection.cs
- SafePEFileHandle.cs
- DateTimeFormatInfoScanner.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- Int16AnimationUsingKeyFrames.cs