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 / 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
- COM2TypeInfoProcessor.cs
- CachedTypeface.cs
- ObjectContextServiceProvider.cs
- EventMappingSettings.cs
- filewebresponse.cs
- ListViewItemEventArgs.cs
- SequentialOutput.cs
- Range.cs
- RenderingEventArgs.cs
- DataGridSortingEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- CurrentChangedEventManager.cs
- SqlDataSourceConfigureFilterForm.cs
- SoapSchemaImporter.cs
- MethodCallConverter.cs
- ObjectStateManagerMetadata.cs
- DbModificationClause.cs
- FixedPageStructure.cs
- CollectionViewGroupInternal.cs
- Byte.cs
- GridView.cs
- TypeViewSchema.cs
- WindowsEditBox.cs
- BrowserCapabilitiesCodeGenerator.cs
- MouseCaptureWithinProperty.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- AuthorizationRule.cs
- SelectorAutomationPeer.cs
- DataGridViewCellConverter.cs
- WebSysDefaultValueAttribute.cs
- SizeFConverter.cs
- DesignBindingPropertyDescriptor.cs
- Int32Rect.cs
- PropertySet.cs
- RowCache.cs
- UiaCoreTypesApi.cs
- XmlIterators.cs
- BezierSegment.cs
- AppSettingsExpressionBuilder.cs
- ResponseStream.cs
- DataTemplate.cs
- Simplifier.cs
- StorageEndPropertyMapping.cs
- HtmlFormWrapper.cs
- Menu.cs
- StringValidatorAttribute.cs
- RepeatBehavior.cs
- Style.cs
- pingexception.cs
- LambdaCompiler.Unary.cs
- FormViewUpdatedEventArgs.cs
- SchemaNamespaceManager.cs
- Calendar.cs
- RegistrationServices.cs
- ByteAnimation.cs
- BindUriHelper.cs
- SHA256CryptoServiceProvider.cs
- WebPartsSection.cs
- SizeFConverter.cs
- StyleXamlParser.cs
- RegistryConfigurationProvider.cs
- HttpListenerRequest.cs
- Viewport3DVisual.cs
- Baml2006ReaderSettings.cs
- NativeMethods.cs
- ConnectionPoint.cs
- DBPropSet.cs
- SafeNativeMethods.cs
- AnnotationService.cs
- RoleManagerEventArgs.cs
- DurationConverter.cs
- DisplayInformation.cs
- GeneralTransform3DGroup.cs
- RoleService.cs
- ErasingStroke.cs
- PolyBezierSegmentFigureLogic.cs
- PlatformNotSupportedException.cs
- SelectionPattern.cs
- DefaultMemberAttribute.cs
- EntityDesignerDataSourceView.cs
- Pointer.cs
- Internal.cs
- SHA1Managed.cs
- DetailsView.cs
- PersonalizationEntry.cs
- uribuilder.cs
- System.Data_BID.cs
- Scanner.cs
- StylusPointPropertyInfo.cs
- Point3DCollectionValueSerializer.cs
- DocumentDesigner.cs
- ToolboxDataAttribute.cs
- XmlAtomErrorReader.cs
- EntityCommandCompilationException.cs
- TemplateXamlParser.cs
- RemotingService.cs
- TextFormatterContext.cs
- _SslSessionsCache.cs
- DomNameTable.cs
- DBSqlParserTable.cs