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
- PersonalizablePropertyEntry.cs
- EventListenerClientSide.cs
- LightweightCodeGenerator.cs
- DataTemplate.cs
- MarkedHighlightComponent.cs
- HtmlTableRowCollection.cs
- ClassHandlersStore.cs
- EntityEntry.cs
- HasCopySemanticsAttribute.cs
- DynamicMethod.cs
- ErrorProvider.cs
- UnsafeNativeMethodsMilCoreApi.cs
- XamlSerializerUtil.cs
- Glyph.cs
- CollectionViewGroup.cs
- NativeMethods.cs
- RSAPKCS1SignatureDeformatter.cs
- StackOverflowException.cs
- DefaultExpression.cs
- StringInfo.cs
- MethodImplAttribute.cs
- ReflectionUtil.cs
- DynamicMethod.cs
- DbConnectionStringCommon.cs
- CodeAccessSecurityEngine.cs
- ErrorRuntimeConfig.cs
- _SSPIWrapper.cs
- DataGridViewCellStateChangedEventArgs.cs
- localization.cs
- MappingSource.cs
- Debug.cs
- ParallelTimeline.cs
- Hex.cs
- SecurityProtocol.cs
- ColorBuilder.cs
- ListViewDeleteEventArgs.cs
- CallbackException.cs
- WebPartZoneAutoFormat.cs
- Matrix3DStack.cs
- MULTI_QI.cs
- PresentationAppDomainManager.cs
- RandomNumberGenerator.cs
- CharConverter.cs
- FrameworkContentElementAutomationPeer.cs
- EndpointConfigContainer.cs
- Pkcs9Attribute.cs
- MappingSource.cs
- SetStateEventArgs.cs
- Attachment.cs
- LicenseProviderAttribute.cs
- NameValuePermission.cs
- GPPOINTF.cs
- SeparatorAutomationPeer.cs
- OdbcDataReader.cs
- DataSourceSelectArguments.cs
- _ConnectStream.cs
- CheckBoxField.cs
- ThicknessAnimationBase.cs
- XmlSchemaSimpleTypeUnion.cs
- TrackingExtract.cs
- ListDictionaryInternal.cs
- FullTextBreakpoint.cs
- TimestampInformation.cs
- ActivityBindForm.Designer.cs
- XamlPathDataSerializer.cs
- DependencyPropertyHelper.cs
- BufferModesCollection.cs
- latinshape.cs
- HGlobalSafeHandle.cs
- SkinBuilder.cs
- PenThread.cs
- MarkupObject.cs
- CalendarDataBindingHandler.cs
- IIS7WorkerRequest.cs
- PointHitTestResult.cs
- PipelineModuleStepContainer.cs
- _RegBlobWebProxyDataBuilder.cs
- DynamicMetaObjectBinder.cs
- Parsers.cs
- GrammarBuilderWildcard.cs
- DispatcherExceptionEventArgs.cs
- LineVisual.cs
- LinqMaximalSubtreeNominator.cs
- ObjectStateFormatter.cs
- ArgumentOutOfRangeException.cs
- UIAgentCrashedException.cs
- MsdtcClusterUtils.cs
- DelayedRegex.cs
- FrameworkElement.cs
- WebService.cs
- Attributes.cs
- SqlFactory.cs
- SortKey.cs
- CodeDirectoryCompiler.cs
- CodeTypeDeclarationCollection.cs
- InternalControlCollection.cs
- IsolationInterop.cs
- BindingSource.cs
- infer.cs
- XmlReader.cs