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
- InvalidOleVariantTypeException.cs
- XmlSchemas.cs
- ItemCheckEvent.cs
- ConnectionManagementElement.cs
- IFlowDocumentViewer.cs
- FileLoadException.cs
- HttpListenerResponse.cs
- TextTreeRootTextBlock.cs
- System.Data_BID.cs
- CodeIndexerExpression.cs
- QilTypeChecker.cs
- LayoutEvent.cs
- MultipartIdentifier.cs
- NamedPermissionSet.cs
- UnorderedHashRepartitionStream.cs
- EntityDataSourceMemberPath.cs
- ArrangedElement.cs
- NotCondition.cs
- ReferentialConstraint.cs
- InputReferenceExpression.cs
- LineBreak.cs
- DiagnosticsConfiguration.cs
- OdbcPermission.cs
- SelectionUIHandler.cs
- MenuBindingsEditorForm.cs
- XmlTextReader.cs
- MetadataSection.cs
- Interlocked.cs
- ResourceDescriptionAttribute.cs
- KeyboardDevice.cs
- SystemColors.cs
- QuaternionConverter.cs
- SafeFreeMibTable.cs
- DetailsViewDeletedEventArgs.cs
- StreamGeometry.cs
- ClientData.cs
- OwnerDrawPropertyBag.cs
- MetafileHeaderWmf.cs
- DataGridTextBoxColumn.cs
- CompilerCollection.cs
- XmlSchemas.cs
- XamlPointCollectionSerializer.cs
- MatrixTransform3D.cs
- HttpProfileGroupBase.cs
- DecoderReplacementFallback.cs
- QuaternionRotation3D.cs
- EventArgs.cs
- TemplateXamlTreeBuilder.cs
- OleDbFactory.cs
- ErrorWrapper.cs
- PEFileReader.cs
- ManagementObjectCollection.cs
- DrawingCollection.cs
- Filter.cs
- HelpInfo.cs
- SafeReversePInvokeHandle.cs
- Utils.cs
- COM2Properties.cs
- BitmapSource.cs
- SiteMapPath.cs
- XmlHierarchicalEnumerable.cs
- TaskFileService.cs
- RowParagraph.cs
- AuthenticatedStream.cs
- SchemaConstraints.cs
- TypeInitializationException.cs
- InheritablePropertyChangeInfo.cs
- BlurBitmapEffect.cs
- FlowNode.cs
- DataProtection.cs
- UInt64Storage.cs
- XmlSchemaElement.cs
- DefaultProxySection.cs
- MobileCategoryAttribute.cs
- AsnEncodedData.cs
- Size3DConverter.cs
- __ComObject.cs
- storagemappingitemcollection.viewdictionary.cs
- FileCodeGroup.cs
- CompressedStack.cs
- TextChange.cs
- CompressEmulationStream.cs
- ControlPager.cs
- MultiTargetingUtil.cs
- ExclusiveCanonicalizationTransform.cs
- FilterQueryOptionExpression.cs
- ThemeDirectoryCompiler.cs
- Binding.cs
- ResourcesBuildProvider.cs
- _LocalDataStore.cs
- EntityDataSourceQueryBuilder.cs
- AlignmentXValidation.cs
- SafeRightsManagementPubHandle.cs
- ChangeTracker.cs
- StorageInfo.cs
- Attachment.cs
- SqlParameterCollection.cs
- ContractComponent.cs
- XmlQualifiedNameTest.cs
- SoapElementAttribute.cs