Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewLayoutData.cs / 1305376 / DataGridViewLayoutData.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Drawing; using System.Text; namespace System.Windows.Forms { public partial class DataGridView { internal class LayoutData { internal bool dirty = true; // used for resizing. public Rectangle ClientRectangle = Rectangle.Empty; // region inside the dataGridView's borders. public Rectangle Inside = Rectangle.Empty; // region occupied by row headers public Rectangle RowHeaders = Rectangle.Empty; // region occupied by column headers public Rectangle ColumnHeaders = Rectangle.Empty; // top left header cell public Rectangle TopLeftHeader = Rectangle.Empty; // region for the cells public Rectangle Data = Rectangle.Empty; // square connecting the two scrollbars public Rectangle ResizeBoxRect = Rectangle.Empty; public bool ColumnHeadersVisible; public bool RowHeadersVisible; public LayoutData() { } public LayoutData(LayoutData src) { this.ClientRectangle = src.ClientRectangle; this.TopLeftHeader = src.TopLeftHeader; this.ColumnHeaders = src.ColumnHeaders; this.RowHeaders = src.RowHeaders; this.Inside = src.Inside; this.Data = src.Data; this.ResizeBoxRect = src.ResizeBoxRect; this.ColumnHeadersVisible = src.ColumnHeadersVisible; this.RowHeadersVisible = src.RowHeadersVisible; } public override string ToString() { StringBuilder sb = new StringBuilder(100); sb.Append(base.ToString()); sb.Append(" { \n"); sb.Append("ClientRectangle = "); sb.Append(ClientRectangle.ToString()); sb.Append('\n'); sb.Append("Inside = "); sb.Append(Inside.ToString()); sb.Append('\n'); sb.Append("TopLeftHeader = "); sb.Append(TopLeftHeader.ToString()); sb.Append('\n'); sb.Append("ColumnHeaders = "); sb.Append(ColumnHeaders.ToString()); sb.Append('\n'); sb.Append("RowHeaders = "); sb.Append(RowHeaders.ToString()); sb.Append('\n'); sb.Append("Data = "); sb.Append(Data.ToString()); sb.Append('\n'); sb.Append("ResizeBoxRect = "); sb.Append(ResizeBoxRect.ToString()); sb.Append('\n'); sb.Append("ColumnHeadersVisible = "); sb.Append(ColumnHeadersVisible.ToString()); sb.Append('\n'); sb.Append("RowHeadersVisible = "); sb.Append(RowHeadersVisible.ToString()); sb.Append(" }"); return sb.ToString(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Drawing; using System.Text; namespace System.Windows.Forms { public partial class DataGridView { internal class LayoutData { internal bool dirty = true; // used for resizing. public Rectangle ClientRectangle = Rectangle.Empty; // region inside the dataGridView's borders. public Rectangle Inside = Rectangle.Empty; // region occupied by row headers public Rectangle RowHeaders = Rectangle.Empty; // region occupied by column headers public Rectangle ColumnHeaders = Rectangle.Empty; // top left header cell public Rectangle TopLeftHeader = Rectangle.Empty; // region for the cells public Rectangle Data = Rectangle.Empty; // square connecting the two scrollbars public Rectangle ResizeBoxRect = Rectangle.Empty; public bool ColumnHeadersVisible; public bool RowHeadersVisible; public LayoutData() { } public LayoutData(LayoutData src) { this.ClientRectangle = src.ClientRectangle; this.TopLeftHeader = src.TopLeftHeader; this.ColumnHeaders = src.ColumnHeaders; this.RowHeaders = src.RowHeaders; this.Inside = src.Inside; this.Data = src.Data; this.ResizeBoxRect = src.ResizeBoxRect; this.ColumnHeadersVisible = src.ColumnHeadersVisible; this.RowHeadersVisible = src.RowHeadersVisible; } public override string ToString() { StringBuilder sb = new StringBuilder(100); sb.Append(base.ToString()); sb.Append(" { \n"); sb.Append("ClientRectangle = "); sb.Append(ClientRectangle.ToString()); sb.Append('\n'); sb.Append("Inside = "); sb.Append(Inside.ToString()); sb.Append('\n'); sb.Append("TopLeftHeader = "); sb.Append(TopLeftHeader.ToString()); sb.Append('\n'); sb.Append("ColumnHeaders = "); sb.Append(ColumnHeaders.ToString()); sb.Append('\n'); sb.Append("RowHeaders = "); sb.Append(RowHeaders.ToString()); sb.Append('\n'); sb.Append("Data = "); sb.Append(Data.ToString()); sb.Append('\n'); sb.Append("ResizeBoxRect = "); sb.Append(ResizeBoxRect.ToString()); sb.Append('\n'); sb.Append("ColumnHeadersVisible = "); sb.Append(ColumnHeadersVisible.ToString()); sb.Append('\n'); sb.Append("RowHeadersVisible = "); sb.Append(RowHeadersVisible.ToString()); sb.Append(" }"); return sb.ToString(); } } } } // 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
- NotificationContext.cs
- RestHandler.cs
- SessionState.cs
- DataPagerFieldItem.cs
- StylusPointDescription.cs
- SecurityPermission.cs
- WindowsStreamSecurityBindingElement.cs
- QilChoice.cs
- TempFiles.cs
- DecodeHelper.cs
- FastEncoder.cs
- DataGridCellClipboardEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- MessageHeaderAttribute.cs
- KeyInterop.cs
- Delegate.cs
- DataColumnPropertyDescriptor.cs
- DetailsViewUpdatedEventArgs.cs
- ServiceRouteHandler.cs
- ColorComboBox.cs
- DurableTimerExtension.cs
- CustomWebEventKey.cs
- Authorization.cs
- PersonalizationStateInfoCollection.cs
- EventMappingSettingsCollection.cs
- DataGridLinkButton.cs
- OleDbConnectionFactory.cs
- SqlCrossApplyToCrossJoin.cs
- XmlUTF8TextWriter.cs
- ListViewItem.cs
- UIElementIsland.cs
- XsltInput.cs
- FormattedTextSymbols.cs
- SoapProtocolReflector.cs
- DbParameterCollectionHelper.cs
- SwitchElementsCollection.cs
- TextLine.cs
- __FastResourceComparer.cs
- TreeView.cs
- CriticalFileToken.cs
- SuppressIldasmAttribute.cs
- HtmlImage.cs
- SqlProviderUtilities.cs
- CloseCollectionAsyncResult.cs
- FrameworkElement.cs
- ProfileSettings.cs
- CodeVariableReferenceExpression.cs
- DBCSCodePageEncoding.cs
- DetailsViewRowCollection.cs
- ObjectViewFactory.cs
- ParagraphVisual.cs
- ConsoleCancelEventArgs.cs
- StringFreezingAttribute.cs
- ReadOnlyObservableCollection.cs
- TextElementEditingBehaviorAttribute.cs
- BindingContext.cs
- WebHostUnsafeNativeMethods.cs
- SimpleWebHandlerParser.cs
- CacheForPrimitiveTypes.cs
- SecureUICommand.cs
- AutomationProperties.cs
- ToolStripContainer.cs
- Schema.cs
- ComponentCommands.cs
- LocalTransaction.cs
- UInt64Storage.cs
- _ContextAwareResult.cs
- ToolStripTextBox.cs
- EncodingDataItem.cs
- IsolatedStorageFilePermission.cs
- SignatureToken.cs
- NetworkInformationException.cs
- TrackingServices.cs
- ListBindingConverter.cs
- SHA512.cs
- shaper.cs
- BrushValueSerializer.cs
- ColumnMapTranslator.cs
- Window.cs
- ConfigDefinitionUpdates.cs
- SqlDataSource.cs
- SQLInt64.cs
- AddInSegmentDirectoryNotFoundException.cs
- CodeEntryPointMethod.cs
- RuntimeWrappedException.cs
- TailCallAnalyzer.cs
- Bold.cs
- CryptoSession.cs
- SmtpMail.cs
- StorageAssociationTypeMapping.cs
- documentsequencetextview.cs
- ContextMenuAutomationPeer.cs
- Point3DCollectionValueSerializer.cs
- SafeThreadHandle.cs
- Coordinator.cs
- VisualStyleRenderer.cs
- CrossContextChannel.cs
- DateTimeUtil.cs
- OracleCommandBuilder.cs
- ContainerUIElement3D.cs