Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowHeightInfoNeededEventArgs.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeEventHandle.cs
- InternalsVisibleToAttribute.cs
- _HelperAsyncResults.cs
- MailHeaderInfo.cs
- _RequestCacheProtocol.cs
- PointHitTestParameters.cs
- NameValueCache.cs
- DataGridViewRowConverter.cs
- EntityDataSourceDesigner.cs
- TemplateBindingExpressionConverter.cs
- Exceptions.cs
- ExtensionQuery.cs
- Tokenizer.cs
- FacetValueContainer.cs
- PerfCounters.cs
- WorkItem.cs
- TextInfo.cs
- DataShape.cs
- System.Data.OracleClient_BID.cs
- ResXResourceSet.cs
- BuildProvidersCompiler.cs
- DbConnectionOptions.cs
- SchemaCreator.cs
- InputLangChangeEvent.cs
- TemplateKeyConverter.cs
- UnmanagedMemoryStreamWrapper.cs
- DeviceContext2.cs
- ArrayConverter.cs
- CodeDomConfigurationHandler.cs
- ZipIOExtraFieldElement.cs
- ObjectDataSourceStatusEventArgs.cs
- _NetRes.cs
- PersonalizablePropertyEntry.cs
- XmlChildNodes.cs
- PageParser.cs
- Object.cs
- sqlser.cs
- DynamicPropertyReader.cs
- AuthenticationService.cs
- ControlValuePropertyAttribute.cs
- SoapSchemaImporter.cs
- DynamicValueConverter.cs
- UdpMessageProperty.cs
- XamlPoint3DCollectionSerializer.cs
- NopReturnReader.cs
- XmlSchemaInfo.cs
- AccessDataSource.cs
- TdsParserStaticMethods.cs
- InvokeFunc.cs
- SizeAnimationClockResource.cs
- SoapSchemaExporter.cs
- LinkedResourceCollection.cs
- ScrollPattern.cs
- DeferredTextReference.cs
- PnrpPeerResolver.cs
- SimplePropertyEntry.cs
- TextElementEditingBehaviorAttribute.cs
- GridViewRow.cs
- MetadataArtifactLoaderFile.cs
- CharacterBuffer.cs
- WindowInteractionStateTracker.cs
- SpeechRecognitionEngine.cs
- SqlVersion.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- CompiledIdentityConstraint.cs
- SpellerError.cs
- GacUtil.cs
- Matrix3DStack.cs
- IconConverter.cs
- DrawingCollection.cs
- Menu.cs
- ConfigurationHelpers.cs
- DataGridViewImageColumn.cs
- RecognizerInfo.cs
- ApplicationHost.cs
- TdsRecordBufferSetter.cs
- AuthStoreRoleProvider.cs
- EventWaitHandleSecurity.cs
- DockPanel.cs
- QuaternionRotation3D.cs
- ComponentRenameEvent.cs
- TokenBasedSetEnumerator.cs
- AccessText.cs
- NativeRecognizer.cs
- SatelliteContractVersionAttribute.cs
- WebPartDescription.cs
- ObjectSet.cs
- SystemDropShadowChrome.cs
- HttpGetProtocolReflector.cs
- CheckBoxFlatAdapter.cs
- BeginEvent.cs
- ProcessModelInfo.cs
- CssClassPropertyAttribute.cs
- XsltLibrary.cs
- DataViewManager.cs
- TextServicesCompartmentEventSink.cs
- PageThemeCodeDomTreeGenerator.cs
- ValueExpressions.cs
- PkcsMisc.cs
- DocobjHost.cs