Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyResourceLoader.cs
- PagerStyle.cs
- WebPartMovingEventArgs.cs
- EntityDataSourceValidationException.cs
- ToolStripAdornerWindowService.cs
- ClientApiGenerator.cs
- Root.cs
- PropertyGridDesigner.cs
- EntityDataSourceChangingEventArgs.cs
- EdmValidator.cs
- SqlBooleanizer.cs
- CompletionProxy.cs
- DependencyObjectType.cs
- RootBrowserWindow.cs
- TextWriterEngine.cs
- DesignSurfaceManager.cs
- ExpressionTextBoxAutomationPeer.cs
- BufferedReadStream.cs
- RTLAwareMessageBox.cs
- StringCollection.cs
- EnumUnknown.cs
- WebConfigurationHost.cs
- HwndKeyboardInputProvider.cs
- SchemaMerger.cs
- AsymmetricKeyExchangeFormatter.cs
- AutomationPeer.cs
- __FastResourceComparer.cs
- DesignerFrame.cs
- ClientTargetCollection.cs
- Attributes.cs
- ItemChangedEventArgs.cs
- ScopelessEnumAttribute.cs
- AttributeSetAction.cs
- XmlNullResolver.cs
- JsonDeserializer.cs
- SQLBytes.cs
- Object.cs
- TextSchema.cs
- ControlIdConverter.cs
- SiteMapPath.cs
- RangeExpression.cs
- TextEditorDragDrop.cs
- SortedList.cs
- ConfigurationManagerInternal.cs
- MexTcpBindingElement.cs
- PartialArray.cs
- AppDomainManager.cs
- login.cs
- ToolStripDropDownButton.cs
- NetCodeGroup.cs
- WSHttpBindingElement.cs
- DataGridTable.cs
- ParameterBuilder.cs
- ContextMenu.cs
- SchemaElementDecl.cs
- Padding.cs
- ObjRef.cs
- SQLInt16.cs
- Label.cs
- SettingsSavedEventArgs.cs
- ParameterElementCollection.cs
- EventToken.cs
- ViewCellSlot.cs
- EntityType.cs
- DataGridViewColumnConverter.cs
- ExeConfigurationFileMap.cs
- BypassElement.cs
- SqlCacheDependencySection.cs
- XmlUnspecifiedAttribute.cs
- BamlTreeMap.cs
- Composition.cs
- Annotation.cs
- SqlRowUpdatedEvent.cs
- DesignerSelectionListAdapter.cs
- WindowsListViewItemCheckBox.cs
- ValuePatternIdentifiers.cs
- StyleHelper.cs
- AnnotationComponentManager.cs
- Substitution.cs
- SqlNotificationEventArgs.cs
- ProgramPublisher.cs
- BooleanKeyFrameCollection.cs
- ProfilePropertyNameValidator.cs
- GlyphRunDrawing.cs
- serverconfig.cs
- SerializationEventsCache.cs
- xml.cs
- DocumentSchemaValidator.cs
- SqlDataSourceCommandEventArgs.cs
- ByteStack.cs
- X509ClientCertificateAuthenticationElement.cs
- ControlBindingsCollection.cs
- TransformationRules.cs
- UpdateException.cs
- SmiEventSink_DeferedProcessing.cs
- WorkItem.cs
- ExceptionUtil.cs
- autovalidator.cs
- XmlIgnoreAttribute.cs
- RemotingException.cs