Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowHeightInfoNeededEventArgs.cs / 1 / 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
- WaitForChangedResult.cs
- DashStyles.cs
- RightsManagementUser.cs
- InputLanguageEventArgs.cs
- ListViewContainer.cs
- SubpageParaClient.cs
- ZipIOExtraFieldElement.cs
- HelpPage.cs
- UriScheme.cs
- SelectedDatesCollection.cs
- XmlSchemaObject.cs
- RegexCaptureCollection.cs
- StatusBarItem.cs
- Dynamic.cs
- MenuItemCollection.cs
- AssemblyLoader.cs
- GroupBox.cs
- TextServicesDisplayAttribute.cs
- PageAsyncTaskManager.cs
- PrintDocument.cs
- CssTextWriter.cs
- VarRemapper.cs
- ScrollItemProviderWrapper.cs
- ApplicationBuildProvider.cs
- LineInfo.cs
- SynchronizedInputHelper.cs
- CachedRequestParams.cs
- DataRelationCollection.cs
- CompatibleIComparer.cs
- DataGrid.cs
- ReferencedAssembly.cs
- DispatcherSynchronizationContext.cs
- ButtonBase.cs
- RestHandlerFactory.cs
- FontFamily.cs
- DictionaryMarkupSerializer.cs
- ReachSerializerAsync.cs
- TailPinnedEventArgs.cs
- LoaderAllocator.cs
- DeploymentSection.cs
- OleDbReferenceCollection.cs
- ImpersonationContext.cs
- CTreeGenerator.cs
- MailBnfHelper.cs
- ResXResourceSet.cs
- XmlSchemaProviderAttribute.cs
- LinqDataSourceContextEventArgs.cs
- SecurityHelper.cs
- PageParserFilter.cs
- GenericEnumerator.cs
- PageCodeDomTreeGenerator.cs
- Win32SafeHandles.cs
- CodeCatchClause.cs
- CodeIdentifier.cs
- StickyNoteAnnotations.cs
- XmlSchemaObjectCollection.cs
- AtlasWeb.Designer.cs
- DependencyObjectPropertyDescriptor.cs
- EventHandlersDesigner.cs
- ValidatorCompatibilityHelper.cs
- QueryContinueDragEvent.cs
- Column.cs
- ACE.cs
- ErrorProvider.cs
- ValidationErrorCollection.cs
- BaseParser.cs
- CatalogPartCollection.cs
- AdRotator.cs
- OutputCacheProfileCollection.cs
- ComponentGlyph.cs
- ValidateNames.cs
- Size3DValueSerializer.cs
- dbenumerator.cs
- ConversionValidationRule.cs
- DataBindingHandlerAttribute.cs
- QuadraticBezierSegment.cs
- XmlElementCollection.cs
- FileRecordSequenceCompletedAsyncResult.cs
- WindowsStreamSecurityUpgradeProvider.cs
- MsmqProcessProtocolHandler.cs
- ThreadSafeMessageFilterTable.cs
- WebScriptServiceHost.cs
- HttpStaticObjectsCollectionWrapper.cs
- ConfigurationLoaderException.cs
- FormClosingEvent.cs
- DbModificationClause.cs
- BadImageFormatException.cs
- FontStretch.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- StringValidator.cs
- CompoundFileStreamReference.cs
- XmlSchemaImporter.cs
- BufferedReadStream.cs
- Set.cs
- DockPanel.cs
- DictionaryTraceRecord.cs
- PaperSize.cs
- SerializerProvider.cs
- ApplicationDirectoryMembershipCondition.cs
- IntMinMaxAggregationOperator.cs