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
- ServiceBehaviorElement.cs
- ExtensionQuery.cs
- ToolStripContainerActionList.cs
- MultiTouchSystemGestureLogic.cs
- SqlCommandSet.cs
- StringDictionary.cs
- CfgParser.cs
- InternalBase.cs
- TextTreeNode.cs
- WebPartConnectionsConnectVerb.cs
- OdbcError.cs
- RefExpr.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PenLineJoinValidation.cs
- VirtualizedItemPattern.cs
- AppliedDeviceFiltersDialog.cs
- BamlReader.cs
- PropertyStore.cs
- Renderer.cs
- Viewport2DVisual3D.cs
- StringAttributeCollection.cs
- VScrollBar.cs
- XhtmlBasicImageAdapter.cs
- AdornerPresentationContext.cs
- UnicastIPAddressInformationCollection.cs
- OwnerDrawPropertyBag.cs
- DispatcherObject.cs
- SqlCaseSimplifier.cs
- CheckBoxField.cs
- GCHandleCookieTable.cs
- BorderGapMaskConverter.cs
- HwndSourceKeyboardInputSite.cs
- EventLogPermissionAttribute.cs
- WebMessageBodyStyleHelper.cs
- CodeStatement.cs
- MasterPageBuildProvider.cs
- SByte.cs
- ContextMenuStripGroupCollection.cs
- ListViewItemMouseHoverEvent.cs
- PointKeyFrameCollection.cs
- StyleSheet.cs
- JsonFormatReaderGenerator.cs
- EventEntry.cs
- DrawingCollection.cs
- WebHeaderCollection.cs
- DesignerDataConnection.cs
- OdbcEnvironment.cs
- DiagnosticTrace.cs
- RtfToXamlReader.cs
- DataSourceHelper.cs
- SecureConversationSecurityTokenParameters.cs
- DependencyStoreSurrogate.cs
- ChtmlFormAdapter.cs
- BindValidator.cs
- PerformanceCounters.cs
- DBConcurrencyException.cs
- Helpers.cs
- QilNode.cs
- NegationPusher.cs
- FontResourceCache.cs
- BindingBase.cs
- dbdatarecord.cs
- LogLogRecord.cs
- ADConnectionHelper.cs
- SqlConnectionPoolProviderInfo.cs
- XXXOnTypeBuilderInstantiation.cs
- ObjectDataSourceMethodEditor.cs
- PositiveTimeSpanValidator.cs
- TextFindEngine.cs
- Identifier.cs
- TaskForm.cs
- GotoExpression.cs
- UriTemplateClientFormatter.cs
- CustomError.cs
- CodeSnippetExpression.cs
- RegexStringValidator.cs
- SecurityPolicySection.cs
- FocusTracker.cs
- GC.cs
- SqlGenerator.cs
- Subtree.cs
- DocumentPageViewAutomationPeer.cs
- ExpandSegment.cs
- ChannelServices.cs
- TemplateInstanceAttribute.cs
- SubstitutionList.cs
- EditBehavior.cs
- UnmanagedHandle.cs
- UIPropertyMetadata.cs
- HtmlTableRowCollection.cs
- BufferAllocator.cs
- DataRelation.cs
- xmlglyphRunInfo.cs
- WsdlInspector.cs
- InvokeGenerator.cs
- FormViewDeletedEventArgs.cs
- MasterPage.cs
- BoundColumn.cs
- Util.cs
- DragCompletedEventArgs.cs