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
- SystemIcons.cs
- ReadOnlyDataSourceView.cs
- XsltLibrary.cs
- WrappedReader.cs
- IconConverter.cs
- VirtualizingPanel.cs
- ChineseLunisolarCalendar.cs
- DispatcherFrame.cs
- InplaceBitmapMetadataWriter.cs
- DmlSqlGenerator.cs
- cookie.cs
- DataRecordInfo.cs
- Util.cs
- SafeRegistryKey.cs
- SettingsProperty.cs
- _StreamFramer.cs
- SkewTransform.cs
- CompressStream.cs
- Roles.cs
- Filter.cs
- FileChangesMonitor.cs
- Bitmap.cs
- MatrixTransform.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- DigestComparer.cs
- CLSCompliantAttribute.cs
- CapiHashAlgorithm.cs
- TranslateTransform.cs
- SdlChannelSink.cs
- DropShadowEffect.cs
- FlagsAttribute.cs
- CompilerError.cs
- ValueType.cs
- SymDocumentType.cs
- MarkupExtensionReturnTypeAttribute.cs
- ListViewDeletedEventArgs.cs
- SortedDictionary.cs
- ZoneButton.cs
- TextOptionsInternal.cs
- GeometryCollection.cs
- ExceptionUtil.cs
- DirectionalLight.cs
- DefaultAsyncDataDispatcher.cs
- SmiEventSink.cs
- BitSet.cs
- ClientConfigPaths.cs
- MultiplexingFormatMapping.cs
- ToolboxDataAttribute.cs
- SqlGatherProducedAliases.cs
- BaseCodePageEncoding.cs
- XmlBinaryReaderSession.cs
- StackOverflowException.cs
- ClientBuildManager.cs
- TypefaceCollection.cs
- HtmlValidatorAdapter.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- DetailsViewModeEventArgs.cs
- GAC.cs
- NotificationContext.cs
- WindowsContainer.cs
- XmlExceptionHelper.cs
- ListDictionaryInternal.cs
- DependencySource.cs
- ValueType.cs
- MdiWindowListItemConverter.cs
- CachedBitmap.cs
- Timer.cs
- DataSourceExpressionCollection.cs
- TraceEventCache.cs
- QuaternionAnimation.cs
- JavaScriptSerializer.cs
- AuthenticationException.cs
- ImageAutomationPeer.cs
- ToolStripSystemRenderer.cs
- PathGradientBrush.cs
- PointIndependentAnimationStorage.cs
- EnumValidator.cs
- TraceSection.cs
- UpDownBase.cs
- FocusManager.cs
- xmlfixedPageInfo.cs
- ProgressBarHighlightConverter.cs
- TextLine.cs
- BamlVersionHeader.cs
- SqlCacheDependencySection.cs
- TableAutomationPeer.cs
- ReadOnlyDataSourceView.cs
- ActiveXMessageFormatter.cs
- TreeNodeStyle.cs
- JoinSymbol.cs
- FilterElement.cs
- RecipientIdentity.cs
- RegistrySecurity.cs
- TextBoxBaseDesigner.cs
- XmlReader.cs
- SyntaxCheck.cs
- QueryExecutionOption.cs
- WebException.cs
- TimeSpanMinutesConverter.cs
- SqlClientMetaDataCollectionNames.cs