Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / TableLayoutCellPaintEventArgs.cs / 1 / TableLayoutCellPaintEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Windows.Forms.Layout; ////// /// This is the overrided PaintEventArgs for painting the cell of the table /// It contains additional information indicating the row/column of the cell /// as well as the bound of the cell /// public class TableLayoutCellPaintEventArgs : PaintEventArgs { private Rectangle bounds; private int row; private int column; ///public TableLayoutCellPaintEventArgs(Graphics g, Rectangle clipRectangle, Rectangle cellBounds, int column, int row) : base(g, clipRectangle) { this.bounds = cellBounds; this.row = row; this.column = column; } //the bounds of the cell /// public Rectangle CellBounds { get { return bounds; } } //the row index of the cell /// public int Row { get { return row; } } //the column index of the cell /// public int Column { get { return column; } } } } // 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.Collections; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Windows.Forms.Layout; ////// /// This is the overrided PaintEventArgs for painting the cell of the table /// It contains additional information indicating the row/column of the cell /// as well as the bound of the cell /// public class TableLayoutCellPaintEventArgs : PaintEventArgs { private Rectangle bounds; private int row; private int column; ///public TableLayoutCellPaintEventArgs(Graphics g, Rectangle clipRectangle, Rectangle cellBounds, int column, int row) : base(g, clipRectangle) { this.bounds = cellBounds; this.row = row; this.column = column; } //the bounds of the cell /// public Rectangle CellBounds { get { return bounds; } } //the row index of the cell /// public int Row { get { return row; } } //the column index of the cell /// public int Column { get { return column; } } } } // 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
- VisualTreeHelper.cs
- PropertyTabAttribute.cs
- TypeSystem.cs
- OutputScopeManager.cs
- Helpers.cs
- DataGridViewColumnConverter.cs
- BitmapEffectInputData.cs
- Point3DCollection.cs
- RequestCachePolicy.cs
- DelegateInArgument.cs
- TextRangeAdaptor.cs
- StoreContentChangedEventArgs.cs
- HttpProfileBase.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- LogicalTreeHelper.cs
- HostUtils.cs
- XmlElementAttribute.cs
- webproxy.cs
- SingleAnimationUsingKeyFrames.cs
- NetworkStream.cs
- ConfigurationManagerHelperFactory.cs
- QilGenerator.cs
- FontStyles.cs
- XmlSignatureManifest.cs
- MethodExpr.cs
- ClientProxyGenerator.cs
- CFStream.cs
- ComEventsMethod.cs
- UpdateProgress.cs
- StrokeCollectionDefaultValueFactory.cs
- CommandConverter.cs
- SessionStateItemCollection.cs
- Constraint.cs
- DataTrigger.cs
- CommandConverter.cs
- ToolStripDropDown.cs
- Brush.cs
- SoapSchemaMember.cs
- StackSpiller.Bindings.cs
- HttpDictionary.cs
- CodeArgumentReferenceExpression.cs
- PerformanceCounterManager.cs
- ObsoleteAttribute.cs
- BindingCollection.cs
- FormattedTextSymbols.cs
- UnmanagedMarshal.cs
- EntityConnection.cs
- NTAccount.cs
- ConfigurationValidatorBase.cs
- UInt64.cs
- SynchronizationContext.cs
- DeobfuscatingStream.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- Permission.cs
- MetadataSource.cs
- ControlIdConverter.cs
- MobileControlDesigner.cs
- FullTextState.cs
- NullableDecimalSumAggregationOperator.cs
- AttributeUsageAttribute.cs
- UrlPath.cs
- X509ChainPolicy.cs
- BrowserTree.cs
- Animatable.cs
- ServiceInstanceProvider.cs
- DockPattern.cs
- CodeTypeConstructor.cs
- OpenTypeCommon.cs
- SafeArrayTypeMismatchException.cs
- FrameworkObject.cs
- ErrorHandlingReceiver.cs
- JsonQNameDataContract.cs
- AutomationPropertyInfo.cs
- CharEnumerator.cs
- XmlStringTable.cs
- EntityModelSchemaGenerator.cs
- BamlWriter.cs
- SizeChangedEventArgs.cs
- TextEffectCollection.cs
- DesignTimeParseData.cs
- CounterNameConverter.cs
- PackageProperties.cs
- ProgressBar.cs
- ListDictionary.cs
- TargetParameterCountException.cs
- ListMarkerLine.cs
- WebPartManagerInternals.cs
- SpeechSeg.cs
- FamilyMap.cs
- DeclarativeCatalogPart.cs
- X509CertificateTrustedIssuerElementCollection.cs
- Form.cs
- RadialGradientBrush.cs
- MsmqIntegrationValidationBehavior.cs
- CodeVariableReferenceExpression.cs
- SQLDateTimeStorage.cs
- TransformProviderWrapper.cs
- ServiceOperationParameter.cs
- ClockGroup.cs
- initElementDictionary.cs