Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowHeightInfoNeededEventArgs.cs / 1305376 / DataGridViewRowHeightInfoNeededEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; using System.Globalization; ///public class DataGridViewRowHeightInfoNeededEventArgs : EventArgs { private int rowIndex; private int height; private int minimumHeight; internal DataGridViewRowHeightInfoNeededEventArgs() { this.rowIndex = -1; this.height = -1; this.minimumHeight = -1; } /// public int Height { get { return this.height; } set { if (value < this.minimumHeight) { value = this.minimumHeight; } if (value > DataGridViewBand.maxBandThickness) { throw new ArgumentOutOfRangeException("Height", SR.GetString(SR.InvalidHighBoundArgumentEx, "Height", (value).ToString(CultureInfo.CurrentCulture), (DataGridViewBand.maxBandThickness).ToString(CultureInfo.CurrentCulture))); } this.height = value; } } /// public int MinimumHeight { get { return this.minimumHeight; } set { if (value < DataGridViewBand.minBandThickness) { throw new ArgumentOutOfRangeException("MinimumHeight", value, SR.GetString(SR.DataGridViewBand_MinimumHeightSmallerThanOne, (DataGridViewBand.minBandThickness).ToString(CultureInfo.CurrentCulture))); } if (this.height < value) { this.height = value; } this.minimumHeight = value; } } /// public int RowIndex { get { return this.rowIndex; } } internal void SetProperties(int rowIndex, int height, int minimumHeight) { Debug.Assert(rowIndex >= -1); Debug.Assert(height > 0); Debug.Assert(minimumHeight > 0); Debug.Assert(height >= minimumHeight); this.rowIndex = rowIndex; this.height = height; this.minimumHeight = minimumHeight; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; using System.Globalization; ///public class DataGridViewRowHeightInfoNeededEventArgs : EventArgs { private int rowIndex; private int height; private int minimumHeight; internal DataGridViewRowHeightInfoNeededEventArgs() { this.rowIndex = -1; this.height = -1; this.minimumHeight = -1; } /// public int Height { get { return this.height; } set { if (value < this.minimumHeight) { value = this.minimumHeight; } if (value > DataGridViewBand.maxBandThickness) { throw new ArgumentOutOfRangeException("Height", SR.GetString(SR.InvalidHighBoundArgumentEx, "Height", (value).ToString(CultureInfo.CurrentCulture), (DataGridViewBand.maxBandThickness).ToString(CultureInfo.CurrentCulture))); } this.height = value; } } /// public int MinimumHeight { get { return this.minimumHeight; } set { if (value < DataGridViewBand.minBandThickness) { throw new ArgumentOutOfRangeException("MinimumHeight", value, SR.GetString(SR.DataGridViewBand_MinimumHeightSmallerThanOne, (DataGridViewBand.minBandThickness).ToString(CultureInfo.CurrentCulture))); } if (this.height < value) { this.height = value; } this.minimumHeight = value; } } /// public int RowIndex { get { return this.rowIndex; } } internal void SetProperties(int rowIndex, int height, int minimumHeight) { Debug.Assert(rowIndex >= -1); Debug.Assert(height > 0); Debug.Assert(minimumHeight > 0); Debug.Assert(height >= minimumHeight); this.rowIndex = rowIndex; this.height = height; this.minimumHeight = minimumHeight; } } } // 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
- DataGridColumnCollection.cs
- DebugView.cs
- DataBindingCollection.cs
- FixedBufferAttribute.cs
- HttpCacheParams.cs
- XmlSchemaSimpleContent.cs
- SystemIPInterfaceStatistics.cs
- ObjectNotFoundException.cs
- TextFormatterContext.cs
- StylusShape.cs
- GeometryGroup.cs
- PartialCachingControl.cs
- Missing.cs
- HostedElements.cs
- ToolStripItemEventArgs.cs
- MailFileEditor.cs
- PagerSettings.cs
- HtmlProps.cs
- EntityDataSourceDesigner.cs
- CachedPathData.cs
- NamespaceEmitter.cs
- WpfGeneratedKnownProperties.cs
- MiniLockedBorderGlyph.cs
- Hex.cs
- Win32Native.cs
- BrowserTree.cs
- ToolboxCategoryItems.cs
- ScriptingAuthenticationServiceSection.cs
- AsyncStreamReader.cs
- ImageBrush.cs
- RevocationPoint.cs
- InternalDuplexBindingElement.cs
- SmtpMail.cs
- VisualStyleTypesAndProperties.cs
- PriorityBindingExpression.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataServiceBehavior.cs
- WaitingCursor.cs
- ClientSettingsSection.cs
- GridViewSelectEventArgs.cs
- PerformanceCounterNameAttribute.cs
- JournalNavigationScope.cs
- NetworkCredential.cs
- HttpRuntimeSection.cs
- DownloadProgressEventArgs.cs
- ServiceReference.cs
- ProfilePropertySettingsCollection.cs
- WinFormsSecurity.cs
- RefType.cs
- Logging.cs
- AvTraceFormat.cs
- StoreItemCollection.Loader.cs
- StaticExtension.cs
- TraceProvider.cs
- _SslStream.cs
- UserControl.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- GraphicsContainer.cs
- Int32CAMarshaler.cs
- TimerElapsedEvenArgs.cs
- PocoPropertyAccessorStrategy.cs
- DoubleAnimationUsingPath.cs
- SplashScreenNativeMethods.cs
- recordstatescratchpad.cs
- InfoCardSymmetricAlgorithm.cs
- RightsManagementInformation.cs
- SessionPageStatePersister.cs
- CalendarAutoFormatDialog.cs
- SchemeSettingElement.cs
- ManagementScope.cs
- RenderingBiasValidation.cs
- TextServicesCompartment.cs
- CodeStatementCollection.cs
- ImageCreator.cs
- XPathAncestorQuery.cs
- SiteMapSection.cs
- HitTestFilterBehavior.cs
- DiscreteKeyFrames.cs
- SQLSingleStorage.cs
- FormsAuthenticationModule.cs
- Context.cs
- BindingBase.cs
- SessionPageStateSection.cs
- WinCategoryAttribute.cs
- NullableIntAverageAggregationOperator.cs
- ServicesUtilities.cs
- LinqDataSourceHelper.cs
- FontFamilyValueSerializer.cs
- Expression.DebuggerProxy.cs
- AlignmentXValidation.cs
- SelectionChangedEventArgs.cs
- ActivationProxy.cs
- DocumentViewerConstants.cs
- Message.cs
- ParserStreamGeometryContext.cs
- Root.cs
- PropertyPathConverter.cs
- OleDbRowUpdatingEvent.cs
- SetIterators.cs
- DetailsView.cs