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
- File.cs
- FileDetails.cs
- XmlEnumAttribute.cs
- HelpEvent.cs
- DataTransferEventArgs.cs
- XmlEntity.cs
- PrintControllerWithStatusDialog.cs
- RawMouseInputReport.cs
- DropShadowEffect.cs
- BinHexEncoder.cs
- ServicePointManager.cs
- BindUriHelper.cs
- Stroke2.cs
- PartialClassGenerationTask.cs
- EntityTypeEmitter.cs
- Timer.cs
- SelectorAutomationPeer.cs
- StrongName.cs
- ExtenderProvidedPropertyAttribute.cs
- InternalControlCollection.cs
- TextRangeEditLists.cs
- EventLogHandle.cs
- DataControlReferenceCollection.cs
- MatrixCamera.cs
- BufferedStream2.cs
- UpdateException.cs
- VirtualDirectoryMappingCollection.cs
- ElementHostAutomationPeer.cs
- NumericUpDown.cs
- OSFeature.cs
- ISAPIRuntime.cs
- ParserExtension.cs
- SynchronizedPool.cs
- SelectedGridItemChangedEvent.cs
- HierarchicalDataSourceConverter.cs
- ConfigXmlText.cs
- AmbientProperties.cs
- ContentOperations.cs
- EditorBrowsableAttribute.cs
- Schema.cs
- WCFBuildProvider.cs
- DataGridSortCommandEventArgs.cs
- SchemaAttDef.cs
- DecoderBestFitFallback.cs
- IListConverters.cs
- AccessibilityHelperForXpWin2k3.cs
- OAVariantLib.cs
- PrintPreviewDialog.cs
- LocalizedNameDescriptionPair.cs
- HasCopySemanticsAttribute.cs
- DrawItemEvent.cs
- autovalidator.cs
- WebServiceClientProxyGenerator.cs
- AuthorizationSection.cs
- MbpInfo.cs
- PerformanceCounterPermission.cs
- HandleRef.cs
- DbDataAdapter.cs
- FormViewPageEventArgs.cs
- MaterialGroup.cs
- ConnectionsZone.cs
- ValidatedControlConverter.cs
- ImageBrush.cs
- InputLanguage.cs
- WebExceptionStatus.cs
- SqlConnectionString.cs
- PageAdapter.cs
- SecurityKeyIdentifierClause.cs
- TypeValidationEventArgs.cs
- MsmqIntegrationMessagePool.cs
- DataGridViewBand.cs
- RootBuilder.cs
- KeyEventArgs.cs
- ParameterBuilder.cs
- XmlDomTextWriter.cs
- WinEventQueueItem.cs
- DecimalKeyFrameCollection.cs
- Membership.cs
- ImageListUtils.cs
- AspNetHostingPermission.cs
- TraceUtils.cs
- UncommonField.cs
- AttachedPropertyBrowsableAttribute.cs
- ViewManagerAttribute.cs
- EntitySqlQueryCacheEntry.cs
- IPPacketInformation.cs
- WindowsContainer.cs
- ProxyAttribute.cs
- SerTrace.cs
- ProfileSettingsCollection.cs
- sqlinternaltransaction.cs
- Attribute.cs
- XmlNodeChangedEventArgs.cs
- InstanceHandleReference.cs
- CAGDesigner.cs
- FillErrorEventArgs.cs
- HtmlInputRadioButton.cs
- DelegatedStream.cs
- RequestQueryParser.cs
- NavigationEventArgs.cs