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
- InfoCardSymmetricAlgorithm.cs
- CustomAttributeSerializer.cs
- DataSourceView.cs
- ServiceDescription.cs
- AmbientValueAttribute.cs
- ScriptMethodAttribute.cs
- Content.cs
- SyndicationCategory.cs
- LinqDataSourceHelper.cs
- ResourceDictionary.cs
- Command.cs
- DynamicQueryableWrapper.cs
- QuaternionAnimation.cs
- LinqDataSourceEditData.cs
- DebugView.cs
- HttpBindingExtension.cs
- ObjectDisposedException.cs
- NamespaceTable.cs
- UInt32.cs
- Point3DConverter.cs
- DependencyPropertyHelper.cs
- ResourceManager.cs
- ToolStripSystemRenderer.cs
- OptimizerPatterns.cs
- securitymgrsite.cs
- AppSettingsExpressionBuilder.cs
- XmlTextAttribute.cs
- FixedSOMFixedBlock.cs
- querybuilder.cs
- InheritanceRules.cs
- _LocalDataStore.cs
- XpsSerializerWriter.cs
- GridViewRowEventArgs.cs
- ChannelServices.cs
- OpenTypeLayoutCache.cs
- EdmToObjectNamespaceMap.cs
- DynamicPropertyHolder.cs
- XamlToRtfWriter.cs
- XmlSchemaImport.cs
- NavigationPropertySingletonExpression.cs
- XmlDocumentSerializer.cs
- SqlHelper.cs
- ClientSettingsSection.cs
- ApplicationDirectory.cs
- UrlUtility.cs
- LineSegment.cs
- SQLMembershipProvider.cs
- CodeIndexerExpression.cs
- AppDomainFactory.cs
- GroupBox.cs
- _TransmitFileOverlappedAsyncResult.cs
- PeerContact.cs
- XmlReaderSettings.cs
- DocumentPageView.cs
- SqlDataSource.cs
- XmlSchemaSequence.cs
- SpellerInterop.cs
- OSFeature.cs
- DirectoryNotFoundException.cs
- PostBackTrigger.cs
- CategoryNameCollection.cs
- WebRequestModuleElement.cs
- ArgIterator.cs
- DataServiceRequestException.cs
- DoubleCollection.cs
- GridErrorDlg.cs
- CompositeCollectionView.cs
- Fault.cs
- TraceContextRecord.cs
- XmlTypeAttribute.cs
- PartitionedDataSource.cs
- Bezier.cs
- NotifyParentPropertyAttribute.cs
- ObservableDictionary.cs
- UniqueContractNameValidationBehavior.cs
- RulePatternOps.cs
- EntityWithKeyStrategy.cs
- KeyProperty.cs
- Byte.cs
- ProcessExitedException.cs
- DummyDataSource.cs
- DrawingAttributesDefaultValueFactory.cs
- ControllableStoryboardAction.cs
- ValueUtilsSmi.cs
- RectIndependentAnimationStorage.cs
- SequentialUshortCollection.cs
- SerializationObjectManager.cs
- Point4DValueSerializer.cs
- UserControlParser.cs
- DbConnectionInternal.cs
- Pen.cs
- SqlSupersetValidator.cs
- NotCondition.cs
- UnmanagedHandle.cs
- DiagnosticTrace.cs
- BamlLocalizationDictionary.cs
- SmiConnection.cs
- localization.cs
- ThicknessAnimationUsingKeyFrames.cs
- HotSpotCollection.cs