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
- ProfileGroupSettings.cs
- RangeValueProviderWrapper.cs
- DataGridViewCellMouseEventArgs.cs
- XmlSchemaInferenceException.cs
- RefExpr.cs
- RNGCryptoServiceProvider.cs
- HandlerWithFactory.cs
- MessageHeaderAttribute.cs
- SystemResourceHost.cs
- SiteMembershipCondition.cs
- OleDbException.cs
- Enumerable.cs
- ReverseInheritProperty.cs
- DataTableCollection.cs
- HelpEvent.cs
- CellParaClient.cs
- StatusStrip.cs
- SafeBitVector32.cs
- EntityContainerEmitter.cs
- ColumnReorderedEventArgs.cs
- WebReferencesBuildProvider.cs
- XslUrlEditor.cs
- _IPv6Address.cs
- CodeFieldReferenceExpression.cs
- RelationshipConverter.cs
- ArgumentDesigner.xaml.cs
- PolyQuadraticBezierSegment.cs
- X509CertificateCollection.cs
- IdentityNotMappedException.cs
- NamespaceInfo.cs
- SettingsPropertyNotFoundException.cs
- CodeStatement.cs
- ExtensionCollection.cs
- BufferedWebEventProvider.cs
- CommonRemoteMemoryBlock.cs
- CDSsyncETWBCLProvider.cs
- ExceptionDetail.cs
- WebReferencesBuildProvider.cs
- isolationinterop.cs
- ElementHostPropertyMap.cs
- BoundPropertyEntry.cs
- SemaphoreSecurity.cs
- XmlSignatureProperties.cs
- TableAdapterManagerNameHandler.cs
- FullTextLine.cs
- SqlSupersetValidator.cs
- SqlLiftWhereClauses.cs
- BaseTransportHeaders.cs
- Convert.cs
- HttpCookieCollection.cs
- BinaryFormatter.cs
- ClrPerspective.cs
- AttributeUsageAttribute.cs
- CatalogPartDesigner.cs
- diagnosticsswitches.cs
- WindowsPrincipal.cs
- ToolStripStatusLabel.cs
- EDesignUtil.cs
- RemotingSurrogateSelector.cs
- ArithmeticException.cs
- SqlDataRecord.cs
- ResolveCriteriaApril2005.cs
- CqlLexerHelpers.cs
- DocumentPaginator.cs
- TextCompositionManager.cs
- SHA384.cs
- DaylightTime.cs
- ObjectViewQueryResultData.cs
- XpsFixedPageReaderWriter.cs
- GeneralTransformGroup.cs
- ScriptResourceInfo.cs
- HandleExceptionArgs.cs
- PageEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- LayoutManager.cs
- TCPListener.cs
- BaseConfigurationRecord.cs
- Ops.cs
- LinkClickEvent.cs
- ServiceDescriptionImporter.cs
- Utils.cs
- DataGridViewRowPostPaintEventArgs.cs
- PageFunction.cs
- AdapterUtil.cs
- ValueTypeFixupInfo.cs
- DBPropSet.cs
- DataRecordInternal.cs
- XPathSelectionIterator.cs
- SerializationTrace.cs
- RoleService.cs
- KeyInterop.cs
- TypeExtensionConverter.cs
- TypeConverters.cs
- Region.cs
- ClipboardProcessor.cs
- RootBuilder.cs
- DataGridViewRowsAddedEventArgs.cs
- DataControlFieldCollection.cs
- DSASignatureFormatter.cs
- SqlBulkCopyColumnMapping.cs