Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MinMaxParagraphWidth.cs
- SynchronizationValidator.cs
- SqlConnectionString.cs
- MetadataCacheItem.cs
- ButtonField.cs
- AutomationPatternInfo.cs
- Configuration.cs
- PagerStyle.cs
- WebRequest.cs
- NumberFormatInfo.cs
- LocalFileSettingsProvider.cs
- HyperLinkStyle.cs
- BitmapEffectDrawingContextWalker.cs
- SecurityTokenProviderContainer.cs
- DataGridViewComboBoxColumn.cs
- DbException.cs
- StyleXamlTreeBuilder.cs
- DoubleLinkListEnumerator.cs
- XmlReaderSettings.cs
- HashLookup.cs
- EventPropertyMap.cs
- TabletCollection.cs
- PrintSystemException.cs
- FormsAuthenticationUser.cs
- DictionaryGlobals.cs
- PartialCachingAttribute.cs
- MarkupProperty.cs
- WmlPageAdapter.cs
- CodeMemberEvent.cs
- DesignerLoader.cs
- SerTrace.cs
- FrameworkElementFactory.cs
- CustomBindingElementCollection.cs
- selecteditemcollection.cs
- HostedTransportConfigurationBase.cs
- Form.cs
- Int16Storage.cs
- ImpersonateTokenRef.cs
- FileAuthorizationModule.cs
- ColorTransformHelper.cs
- ValueExpressions.cs
- SamlAuthorityBinding.cs
- DataSpaceManager.cs
- SafeIUnknown.cs
- DetailsViewInsertedEventArgs.cs
- InfoCardAsymmetricCrypto.cs
- ListViewInsertionMark.cs
- dataobject.cs
- TextEffectCollection.cs
- BulletedListEventArgs.cs
- Viewport2DVisual3D.cs
- IApplicationTrustManager.cs
- MetricEntry.cs
- TimerElapsedEvenArgs.cs
- COM2ExtendedTypeConverter.cs
- RemotingService.cs
- UnionExpr.cs
- FeatureSupport.cs
- CaseInsensitiveComparer.cs
- CacheModeConverter.cs
- TextTreeRootNode.cs
- FormsAuthenticationTicket.cs
- IOThreadScheduler.cs
- EnumBuilder.cs
- BitmapDecoder.cs
- WebRequest.cs
- Scripts.cs
- ActivityExecutorSurrogate.cs
- HttpTransportElement.cs
- ProcessInputEventArgs.cs
- FixedSOMLineRanges.cs
- HtmlInputFile.cs
- UnsafeNetInfoNativeMethods.cs
- UrlPropertyAttribute.cs
- DrawingBrush.cs
- InternalResources.cs
- OpenFileDialog.cs
- DynamicScriptObject.cs
- Size3DValueSerializer.cs
- ExceptionTrace.cs
- SymbolMethod.cs
- HtmlTableCell.cs
- TraceHandler.cs
- KeyedCollection.cs
- HTTPNotFoundHandler.cs
- PassportAuthenticationEventArgs.cs
- TextSimpleMarkerProperties.cs
- GlobalizationSection.cs
- TextSelection.cs
- Pkcs7Signer.cs
- EncryptedKey.cs
- BuildProviderAppliesToAttribute.cs
- DataGridViewRowsRemovedEventArgs.cs
- Repeater.cs
- TextBoxRenderer.cs
- BinaryObjectWriter.cs
- DocumentPageHost.cs
- StreamInfo.cs
- SoapWriter.cs
- PagesSection.cs