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
- PageEventArgs.cs
- TouchesCapturedWithinProperty.cs
- JsonMessageEncoderFactory.cs
- UnsafeNativeMethods.cs
- OutputScopeManager.cs
- XmlText.cs
- OleDbTransaction.cs
- mediaeventshelper.cs
- UrlMapping.cs
- SchemaExporter.cs
- MissingFieldException.cs
- ConfigurationValue.cs
- HttpResponseHeader.cs
- WorkflowMarkupSerializer.cs
- XPathNavigatorReader.cs
- IPEndPointCollection.cs
- Window.cs
- Identity.cs
- BasicExpressionVisitor.cs
- CheckBoxList.cs
- EncoderParameter.cs
- SecurityTokenSerializer.cs
- GridPattern.cs
- controlskin.cs
- Vector3DValueSerializer.cs
- MemberDescriptor.cs
- QilLiteral.cs
- AsyncPostBackTrigger.cs
- SingleResultAttribute.cs
- ExtendedPropertiesHandler.cs
- DataRecordObjectView.cs
- WriterOutput.cs
- ListBindableAttribute.cs
- DataAdapter.cs
- KnownTypes.cs
- PortCache.cs
- WebRequestModulesSection.cs
- EnlistmentState.cs
- HtmlUtf8RawTextWriter.cs
- DiscoveryClientOutputChannel.cs
- RequestUriProcessor.cs
- InstanceNotFoundException.cs
- ExitEventArgs.cs
- RootNamespaceAttribute.cs
- WCFBuildProvider.cs
- TreeNodeEventArgs.cs
- Stackframe.cs
- ScriptingAuthenticationServiceSection.cs
- SafeFileMappingHandle.cs
- Expressions.cs
- HtmlTableRowCollection.cs
- ProviderUtil.cs
- BufferAllocator.cs
- ProfessionalColors.cs
- BatchParser.cs
- WebControlParameterProxy.cs
- DataGridViewColumnEventArgs.cs
- EventRouteFactory.cs
- Int32CAMarshaler.cs
- PathNode.cs
- LoginUtil.cs
- SyndicationDeserializer.cs
- CounterSample.cs
- QuaternionConverter.cs
- CodeIndexerExpression.cs
- IsolationInterop.cs
- PageCache.cs
- BorderSidesEditor.cs
- ResourceReferenceKeyNotFoundException.cs
- TextCollapsingProperties.cs
- ScalarConstant.cs
- TextRangeEditTables.cs
- SpeakCompletedEventArgs.cs
- FormatConvertedBitmap.cs
- ScriptModule.cs
- TextRange.cs
- MulticastNotSupportedException.cs
- DynamicResourceExtensionConverter.cs
- RuntimeArgumentHandle.cs
- BitmapEffectInputConnector.cs
- OneWayElement.cs
- GradientBrush.cs
- IgnorePropertiesAttribute.cs
- GifBitmapEncoder.cs
- WorkflowItemsPresenter.cs
- TreeViewCancelEvent.cs
- AxisAngleRotation3D.cs
- TextMetrics.cs
- UpdateExpressionVisitor.cs
- HierarchicalDataSourceControl.cs
- complextypematerializer.cs
- EventHandlerList.cs
- StrokeIntersection.cs
- DataViewManager.cs
- TypeNameConverter.cs
- ModelFactory.cs
- AnnotationHelper.cs
- AncestorChangedEventArgs.cs
- DataObjectAttribute.cs
- XmlSchemaIdentityConstraint.cs