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
- FirewallWrapper.cs
- peernodestatemanager.cs
- Brush.cs
- UserNameSecurityToken.cs
- DispatcherExceptionEventArgs.cs
- DataMisalignedException.cs
- IncomingWebResponseContext.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DataGridSortCommandEventArgs.cs
- XmlTextReaderImpl.cs
- MaterialCollection.cs
- ColumnBinding.cs
- ACL.cs
- TcpTransportSecurity.cs
- relpropertyhelper.cs
- SoapHeaderAttribute.cs
- CertificateManager.cs
- InputLanguage.cs
- WebCategoryAttribute.cs
- PageWrapper.cs
- SemanticTag.cs
- HWStack.cs
- TextRangeAdaptor.cs
- SharedTcpTransportManager.cs
- QuaternionRotation3D.cs
- WebPartMenuStyle.cs
- ExpandableObjectConverter.cs
- LocalServiceSecuritySettings.cs
- RequestResizeEvent.cs
- SettingsProperty.cs
- HttpResponseHeader.cs
- MulticastOption.cs
- WrappedIUnknown.cs
- SingleAnimationBase.cs
- SafeTimerHandle.cs
- SpeakProgressEventArgs.cs
- _NtlmClient.cs
- Debug.cs
- Renderer.cs
- ResourceCategoryAttribute.cs
- XamlSerializer.cs
- ActivityExecutorDelegateInfo.cs
- MailSettingsSection.cs
- TimeManager.cs
- Point3DValueSerializer.cs
- WpfWebRequestHelper.cs
- PermissionSet.cs
- XamlPoint3DCollectionSerializer.cs
- StringToken.cs
- ScrollData.cs
- CustomValidator.cs
- SqlException.cs
- ObjectDisposedException.cs
- DesignerDataTableBase.cs
- ToolStripPanelRenderEventArgs.cs
- PrimitiveType.cs
- ViewCellRelation.cs
- SvcMapFileLoader.cs
- UiaCoreTypesApi.cs
- Transform3D.cs
- SqlExpressionNullability.cs
- HttpCacheVaryByContentEncodings.cs
- MenuItemBinding.cs
- StatusBarPanel.cs
- DataSourceView.cs
- SHA512.cs
- WebPartEventArgs.cs
- LinearGradientBrush.cs
- DataAdapter.cs
- Selection.cs
- CreateUserWizard.cs
- WeakReadOnlyCollection.cs
- filewebresponse.cs
- TreeNodeStyleCollection.cs
- MailSettingsSection.cs
- RelationalExpressions.cs
- ConnectionsZoneAutoFormat.cs
- BinaryFormatterWriter.cs
- Tablet.cs
- AbsoluteQuery.cs
- WeakReferenceList.cs
- BufferedGraphicsManager.cs
- LexicalChunk.cs
- SqlDeflator.cs
- ApplicationId.cs
- VisualBasicSettingsHandler.cs
- CodeRemoveEventStatement.cs
- ServerType.cs
- DurationConverter.cs
- Hex.cs
- oledbconnectionstring.cs
- TraceSection.cs
- TrustSection.cs
- CatalogPartChrome.cs
- WorkflowMarkupSerializationProvider.cs
- SpecialNameAttribute.cs
- WorkflowEventArgs.cs
- WebConfigurationHost.cs
- ViewBox.cs
- TypeHelpers.cs