Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- UniqueID.cs
- FontWeight.cs
- SQLByte.cs
- OperationInfo.cs
- XmlAnyElementAttribute.cs
- RegexCaptureCollection.cs
- RowBinding.cs
- WebRequest.cs
- XmlTextWriter.cs
- DataRow.cs
- PasswordBox.cs
- WindowsScroll.cs
- AsyncResult.cs
- TokenBasedSet.cs
- TextRangeBase.cs
- DefaultMergeHelper.cs
- XmlDataDocument.cs
- SingleStorage.cs
- ImageKeyConverter.cs
- WsatProxy.cs
- HtmlLink.cs
- FormViewRow.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- Fx.cs
- AddingNewEventArgs.cs
- TabControlDesigner.cs
- Process.cs
- ExpressionBindingCollection.cs
- DbMetaDataCollectionNames.cs
- StorageScalarPropertyMapping.cs
- PermissionAttributes.cs
- WindowsListBox.cs
- Sequence.cs
- GrammarBuilderRuleRef.cs
- Tile.cs
- ConfigurationStrings.cs
- MsmqBindingFilter.cs
- CollectionAdapters.cs
- NeutralResourcesLanguageAttribute.cs
- SqlReferenceCollection.cs
- WebBrowser.cs
- HttpAsyncResult.cs
- XmlDocumentFragment.cs
- MobileControl.cs
- HttpValueCollection.cs
- Buffer.cs
- PeerResolver.cs
- ChangeDirector.cs
- ToolboxBitmapAttribute.cs
- XmlResolver.cs
- Point3DAnimation.cs
- DrawingVisual.cs
- NamespaceEmitter.cs
- MemoryRecordBuffer.cs
- SourceLineInfo.cs
- _NestedSingleAsyncResult.cs
- ElementUtil.cs
- SafeHandles.cs
- CqlLexer.cs
- PackUriHelper.cs
- StandardCommands.cs
- OrthographicCamera.cs
- OleDbParameter.cs
- ElementNotEnabledException.cs
- ConsoleCancelEventArgs.cs
- TypeSource.cs
- ReferenceService.cs
- PartialArray.cs
- NameSpaceExtractor.cs
- FloaterBaseParaClient.cs
- CipherData.cs
- DataContractSerializerOperationGenerator.cs
- MultiAsyncResult.cs
- TypeToken.cs
- SettingsPropertyValue.cs
- DateTime.cs
- PKCS1MaskGenerationMethod.cs
- WindowsAuthenticationModule.cs
- AppDomainUnloadedException.cs
- StreamUpgradeBindingElement.cs
- HostSecurityManager.cs
- SiteMapNode.cs
- TextTreeUndo.cs
- DataViewManager.cs
- DbDataSourceEnumerator.cs
- SolidColorBrush.cs
- basecomparevalidator.cs
- StorageScalarPropertyMapping.cs
- sortedlist.cs
- WeakHashtable.cs
- SchemaConstraints.cs
- UmAlQuraCalendar.cs
- ButtonField.cs
- Rect.cs
- HtmlImage.cs
- HandledEventArgs.cs
- SchemaCollectionPreprocessor.cs
- ServiceRoute.cs
- ClockController.cs
- ObjectResult.cs