Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewLayoutData.cs / 1 / 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
- LocalFileSettingsProvider.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- EndpointAddress10.cs
- IsolatedStorageFileStream.cs
- ToolStripItem.cs
- IdentityManager.cs
- CheckBoxField.cs
- DataGridLinkButton.cs
- MemoryResponseElement.cs
- ZipIOLocalFileDataDescriptor.cs
- CommandLibraryHelper.cs
- CodeArrayIndexerExpression.cs
- SpeechDetectedEventArgs.cs
- RegexParser.cs
- SubMenuStyle.cs
- SqlServices.cs
- ClientTargetSection.cs
- HttpStreamFormatter.cs
- HttpHandlerAction.cs
- ClientConfigPaths.cs
- _SslStream.cs
- StringAttributeCollection.cs
- OleDbErrorCollection.cs
- RegexMatchCollection.cs
- WebConfigurationHostFileChange.cs
- DrawingGroup.cs
- MobileSysDescriptionAttribute.cs
- XmlSerializableWriter.cs
- XmlSerializationReader.cs
- ContentWrapperAttribute.cs
- UnhandledExceptionEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- M3DUtil.cs
- ToolStripItemEventArgs.cs
- CacheOutputQuery.cs
- basevalidator.cs
- ToolStripItemRenderEventArgs.cs
- Misc.cs
- RowCache.cs
- QilLoop.cs
- XmlName.cs
- FreeFormDesigner.cs
- ImageMapEventArgs.cs
- DataGridTextBox.cs
- ContentDisposition.cs
- HwndSourceParameters.cs
- WebBrowserUriTypeConverter.cs
- _LocalDataStoreMgr.cs
- PathTooLongException.cs
- WebBrowserHelper.cs
- UrlParameterReader.cs
- EntityPropertyMappingAttribute.cs
- CopyNodeSetAction.cs
- Parameter.cs
- MimeFormImporter.cs
- MruCache.cs
- AssemblyFilter.cs
- WindowsGraphicsWrapper.cs
- UnhandledExceptionEventArgs.cs
- SemanticResultValue.cs
- InputEventArgs.cs
- ResourceIDHelper.cs
- XsdDateTime.cs
- ProcessModelSection.cs
- SessionChannels.cs
- FontFamilyIdentifier.cs
- FixedPosition.cs
- VerificationAttribute.cs
- AuthorizationSection.cs
- ToolStripPanel.cs
- DesignTimeType.cs
- DetailsViewDeleteEventArgs.cs
- GradientBrush.cs
- PrintControllerWithStatusDialog.cs
- Variant.cs
- Annotation.cs
- FacetChecker.cs
- WebPartConnectionCollection.cs
- ToolStripSplitStackLayout.cs
- HitTestParameters3D.cs
- WorkflowDesigner.cs
- NameValueSectionHandler.cs
- InputGestureCollection.cs
- ToolStripStatusLabel.cs
- Int32Rect.cs
- MetabaseServerConfig.cs
- ChtmlMobileTextWriter.cs
- XmlSchemaGroupRef.cs
- VolatileEnlistmentMultiplexing.cs
- ApplicationSettingsBase.cs
- FilterElement.cs
- webproxy.cs
- EntityDataSourceValidationException.cs
- InfoCardArgumentException.cs
- MetadataSource.cs
- ScriptingScriptResourceHandlerSection.cs
- CodeRegionDirective.cs
- OracleBinary.cs
- OdbcTransaction.cs
- DataGridViewCellStyleContentChangedEventArgs.cs