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
- ZoneLinkButton.cs
- ErrorHandler.cs
- TraceProvider.cs
- OrderPreservingPipeliningMergeHelper.cs
- WebPartMinimizeVerb.cs
- WebResourceAttribute.cs
- PrintingPermission.cs
- DecimalStorage.cs
- ImageUrlEditor.cs
- SspiSecurityTokenProvider.cs
- ListSortDescriptionCollection.cs
- DurationConverter.cs
- DbSetClause.cs
- ProjectionPruner.cs
- ConfigsHelper.cs
- IndicShape.cs
- NativeMethods.cs
- ScrollViewer.cs
- Utilities.cs
- ContentWrapperAttribute.cs
- PaintValueEventArgs.cs
- SignatureResourcePool.cs
- ByValueEqualityComparer.cs
- Item.cs
- BlockCollection.cs
- CanonicalFontFamilyReference.cs
- MetadataPropertyAttribute.cs
- ImageIndexConverter.cs
- DetailsViewUpdateEventArgs.cs
- TaiwanCalendar.cs
- Trace.cs
- ThreadExceptionDialog.cs
- LogReserveAndAppendState.cs
- XamlUtilities.cs
- FilterException.cs
- WindowsToolbarAsMenu.cs
- IncrementalReadDecoders.cs
- MenuCommandService.cs
- mansign.cs
- ToolStripDesigner.cs
- xmlformatgeneratorstatics.cs
- RegexGroupCollection.cs
- NavigatingCancelEventArgs.cs
- Selection.cs
- IconConverter.cs
- AttributeAction.cs
- GeneralTransform2DTo3DTo2D.cs
- DataSourceControlBuilder.cs
- WorkflowViewStateService.cs
- CompositionDesigner.cs
- CompiledAction.cs
- CodeTryCatchFinallyStatement.cs
- Stopwatch.cs
- AccessDataSourceWizardForm.cs
- WebContentFormatHelper.cs
- LabelEditEvent.cs
- CollectionViewSource.cs
- XmlReaderSettings.cs
- SafeTimerHandle.cs
- ProfileManager.cs
- BulletedListEventArgs.cs
- SqlDataAdapter.cs
- AstNode.cs
- LockCookie.cs
- NamespaceInfo.cs
- MouseActionConverter.cs
- LinqDataSourceDeleteEventArgs.cs
- DesignerActionTextItem.cs
- ControlsConfig.cs
- PreloadedPackages.cs
- InlineUIContainer.cs
- XmlWhitespace.cs
- BindingExpressionBase.cs
- XmlChildEnumerator.cs
- SharedStatics.cs
- HttpConfigurationSystem.cs
- HyperlinkAutomationPeer.cs
- ViewLoader.cs
- BitHelper.cs
- ConcurrentQueue.cs
- LateBoundBitmapDecoder.cs
- XmlTextReader.cs
- AllMembershipCondition.cs
- AttributeCollection.cs
- EditableTreeList.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XpsFilter.cs
- ConfigurationSettings.cs
- SecurityCapabilities.cs
- ToolStripDropDown.cs
- OrthographicCamera.cs
- SocketStream.cs
- RequestValidator.cs
- ModuleBuilderData.cs
- ConfigurationManagerHelper.cs
- SQLStringStorage.cs
- HyperLinkField.cs
- NavigatorInput.cs
- Decimal.cs
- ServiceBusyException.cs