Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityTokenValidationException.cs
- ZipFileInfo.cs
- QuaternionRotation3D.cs
- JavaScriptSerializer.cs
- XmlElementCollection.cs
- StringUtil.cs
- TextElementEditingBehaviorAttribute.cs
- BindingGraph.cs
- Delay.cs
- RectangleGeometry.cs
- ControlUtil.cs
- NavigationProperty.cs
- XmlSecureResolver.cs
- HwndHostAutomationPeer.cs
- DataServiceKeyAttribute.cs
- TransformValueSerializer.cs
- PropertyEmitterBase.cs
- PropertyGroupDescription.cs
- ExchangeUtilities.cs
- ImageFormat.cs
- XmlSiteMapProvider.cs
- MessageQueuePermissionAttribute.cs
- Label.cs
- ObjectViewFactory.cs
- LinearGradientBrush.cs
- CLSCompliantAttribute.cs
- AccessibleObject.cs
- ConfigurationManager.cs
- StorageMappingFragment.cs
- TextBoxRenderer.cs
- WebConfigurationFileMap.cs
- KeyGestureConverter.cs
- PLINQETWProvider.cs
- SourceChangedEventArgs.cs
- FontDriver.cs
- UnicastIPAddressInformationCollection.cs
- MatrixUtil.cs
- MultiAsyncResult.cs
- ImageField.cs
- ViewManagerAttribute.cs
- HyperLinkStyle.cs
- XMLSchema.cs
- NamespaceMapping.cs
- ExternalDataExchangeService.cs
- DataGridViewImageColumn.cs
- AdRotator.cs
- ConfigurationPropertyAttribute.cs
- SqlCommandBuilder.cs
- DataSourceCacheDurationConverter.cs
- HybridCollection.cs
- BrowsableAttribute.cs
- XmlSchemaSet.cs
- ImageIndexConverter.cs
- GestureRecognitionResult.cs
- DataGridViewColumnConverter.cs
- KeyboardNavigation.cs
- DetailsViewRowCollection.cs
- TableParagraph.cs
- Helpers.cs
- DataGridViewSelectedCellCollection.cs
- SoapInteropTypes.cs
- ArrangedElementCollection.cs
- EffectiveValueEntry.cs
- WebContext.cs
- BaseCollection.cs
- DeviceContext.cs
- DataSourceSelectArguments.cs
- HttpRequestWrapper.cs
- LinqDataSourceView.cs
- XmlILIndex.cs
- _KerberosClient.cs
- MethodImplAttribute.cs
- UnSafeCharBuffer.cs
- DesignTimeParseData.cs
- XmlArrayItemAttribute.cs
- XmlSchemaSet.cs
- MatrixAnimationUsingPath.cs
- LambdaCompiler.Address.cs
- ReceiveContext.cs
- FormsAuthenticationUserCollection.cs
- XmlSchemaCompilationSettings.cs
- DataContractSerializer.cs
- SecurityUtils.cs
- UriScheme.cs
- tibetanshape.cs
- NativeMethods.cs
- InkCanvasSelection.cs
- StickyNoteHelper.cs
- ReaderWriterLock.cs
- SecurityUtils.cs
- RecognizerStateChangedEventArgs.cs
- DbConnectionPoolIdentity.cs
- ParameterToken.cs
- SafeCryptoHandles.cs
- CanonicalFontFamilyReference.cs
- LocalizableResourceBuilder.cs
- PagedDataSource.cs
- RequestNavigateEventArgs.cs
- BrowserCapabilitiesFactory.cs
- EntityTypeEmitter.cs