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
- FieldMetadata.cs
- NameNode.cs
- SecurityPermission.cs
- Psha1DerivedKeyGenerator.cs
- TextBreakpoint.cs
- Classification.cs
- PeerNameRecordCollection.cs
- ApplicationGesture.cs
- DataSourceCacheDurationConverter.cs
- CodeTypeMemberCollection.cs
- OptimizerPatterns.cs
- ConfigsHelper.cs
- HelpEvent.cs
- DataPagerCommandEventArgs.cs
- WebServiceFaultDesigner.cs
- Clipboard.cs
- ClientSideProviderDescription.cs
- MasterPageCodeDomTreeGenerator.cs
- SecurityKeyIdentifierClause.cs
- RC2CryptoServiceProvider.cs
- CodePageEncoding.cs
- TextMessageEncodingElement.cs
- FileAuthorizationModule.cs
- ArgumentException.cs
- AssociationSetEnd.cs
- AccessorTable.cs
- StatusBar.cs
- MediaScriptCommandRoutedEventArgs.cs
- ConfigurationLoader.cs
- AliasedExpr.cs
- BamlTreeUpdater.cs
- Quaternion.cs
- RowUpdatingEventArgs.cs
- DataGridViewElement.cs
- ParameterCollection.cs
- ProfileGroupSettingsCollection.cs
- OpenTypeLayoutCache.cs
- ScriptingScriptResourceHandlerSection.cs
- ApplicationDirectory.cs
- CanExpandCollapseAllConverter.cs
- ExtenderControl.cs
- CheckBoxAutomationPeer.cs
- SettingsPropertyNotFoundException.cs
- CatalogPartChrome.cs
- FixedSOMTableCell.cs
- ErrorStyle.cs
- Size.cs
- CodeDomSerializerBase.cs
- Tool.cs
- WindowsTreeView.cs
- path.cs
- SortDescription.cs
- ObjectPersistData.cs
- RenderingEventArgs.cs
- CodeSnippetTypeMember.cs
- TimerElapsedEvenArgs.cs
- FunctionUpdateCommand.cs
- ListControlConvertEventArgs.cs
- RowUpdatedEventArgs.cs
- DictionarySectionHandler.cs
- TreeView.cs
- QueryCacheManager.cs
- MailDefinition.cs
- mactripleDES.cs
- PolygonHotSpot.cs
- Adorner.cs
- ToggleButton.cs
- EmulateRecognizeCompletedEventArgs.cs
- FormViewInsertEventArgs.cs
- PopupEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- Condition.cs
- DesignTimeSiteMapProvider.cs
- TextSpanModifier.cs
- TableRow.cs
- ELinqQueryState.cs
- ApplicationCommands.cs
- Set.cs
- MessageHeader.cs
- TextDecorations.cs
- FreeFormDesigner.cs
- SqlCharStream.cs
- HeaderElement.cs
- BindingUtils.cs
- DoWorkEventArgs.cs
- FormViewInsertedEventArgs.cs
- ClassHandlersStore.cs
- DataGridViewRowPostPaintEventArgs.cs
- CultureMapper.cs
- UnsafeNetInfoNativeMethods.cs
- XsltLoader.cs
- _NtlmClient.cs
- XmlSchemaCompilationSettings.cs
- BindingCompleteEventArgs.cs
- CommonObjectSecurity.cs
- BindingGroup.cs
- NativeCppClassAttribute.cs
- MethodBuilderInstantiation.cs
- SelectionService.cs
- WebHttpBehavior.cs