Code:
/ FX-1434 / FX-1434 / 1.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
- DCSafeHandle.cs
- HMACRIPEMD160.cs
- ToolStripSplitButton.cs
- FixedSOMPageElement.cs
- TextParagraphView.cs
- TypeReference.cs
- LateBoundBitmapDecoder.cs
- QualifiedCellIdBoolean.cs
- ObjectResult.cs
- ICollection.cs
- SectionVisual.cs
- Token.cs
- DockPatternIdentifiers.cs
- TdsParserSessionPool.cs
- PanelStyle.cs
- FloaterBaseParagraph.cs
- CodeCastExpression.cs
- GZipDecoder.cs
- IIS7WorkerRequest.cs
- SHA1CryptoServiceProvider.cs
- SchemaTableOptionalColumn.cs
- SymmetricAlgorithm.cs
- TrackBar.cs
- TraceProvider.cs
- UIElementCollection.cs
- DataGridGeneralPage.cs
- InkCanvasInnerCanvas.cs
- TargetPerspective.cs
- MessageDirection.cs
- EventItfInfo.cs
- InputDevice.cs
- XNameTypeConverter.cs
- XmlSiteMapProvider.cs
- SqlDataSourceStatusEventArgs.cs
- RealProxy.cs
- CardSpaceSelector.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- RadioButtonStandardAdapter.cs
- OleDbReferenceCollection.cs
- IisTraceListener.cs
- XmlTextWriter.cs
- SyntaxCheck.cs
- QuadTree.cs
- WarningException.cs
- User.cs
- RadialGradientBrush.cs
- SqlDataReader.cs
- XmlQuerySequence.cs
- x509utils.cs
- StreamWriter.cs
- QueueProcessor.cs
- FileCodeGroup.cs
- ColorConvertedBitmapExtension.cs
- XmlTextAttribute.cs
- IsolationInterop.cs
- Vector.cs
- EncryptedType.cs
- ProjectedWrapper.cs
- XmlArrayItemAttributes.cs
- DataObject.cs
- regiisutil.cs
- CallSiteBinder.cs
- ClonableStack.cs
- SHA1.cs
- MetadataCacheItem.cs
- HandlerBase.cs
- ProfilePropertySettings.cs
- XmlSerializerVersionAttribute.cs
- EncryptedPackage.cs
- HtmlForm.cs
- DispatchOperationRuntime.cs
- AstNode.cs
- ValueHandle.cs
- ContainerVisual.cs
- SqlVisitor.cs
- TokenizerHelper.cs
- CroppedBitmap.cs
- SimpleTextLine.cs
- GenericPrincipal.cs
- SecurityChannelFaultConverter.cs
- SiteMapSection.cs
- SingleConverter.cs
- NodeInfo.cs
- DesignTimeParseData.cs
- DesignTable.cs
- unsafenativemethodsother.cs
- lengthconverter.cs
- CursorConverter.cs
- Inline.cs
- ContentPosition.cs
- Stack.cs
- AnnotationAuthorChangedEventArgs.cs
- SecurityResources.cs
- WebServiceTypeData.cs
- FtpWebResponse.cs
- PropertyFilterAttribute.cs
- MethodRental.cs
- PeerInvitationResponse.cs
- Menu.cs
- commandenforcer.cs