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
- GraphicsPath.cs
- ProcessThread.cs
- WSSecurityPolicy11.cs
- TextRunCache.cs
- Bold.cs
- TextSegment.cs
- Schema.cs
- WorkflowShape.cs
- EventMap.cs
- SmtpTransport.cs
- FileCodeGroup.cs
- CodeObjectCreateExpression.cs
- ReachPageContentSerializer.cs
- ReplacementText.cs
- DiagnosticsConfigurationHandler.cs
- SqlCommand.cs
- TableLayoutPanel.cs
- ProfilePropertySettings.cs
- DefaultValueMapping.cs
- ContainsRowNumberChecker.cs
- IndexedSelectQueryOperator.cs
- ProgressBarHighlightConverter.cs
- ByteBufferPool.cs
- Sequence.cs
- BindingSourceDesigner.cs
- CustomWebEventKey.cs
- DynamicDocumentPaginator.cs
- MetadataCacheItem.cs
- ChangeTracker.cs
- ParserHooks.cs
- BinaryMethodMessage.cs
- WebBrowserPermission.cs
- ILGenerator.cs
- Unit.cs
- HttpWebRequest.cs
- SqlClientWrapperSmiStreamChars.cs
- DataGridViewBindingCompleteEventArgs.cs
- PrintController.cs
- NamedPipeConnectionPool.cs
- PageBreakRecord.cs
- oledbmetadatacollectionnames.cs
- ResourceWriter.cs
- BufferedGraphics.cs
- ConnectionStringSettings.cs
- FixedStringLookup.cs
- VBCodeProvider.cs
- FrameworkContentElement.cs
- ManagementDateTime.cs
- SettingsBase.cs
- TreeViewImageKeyConverter.cs
- ArrangedElementCollection.cs
- HtmlImage.cs
- LookupBindingPropertiesAttribute.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- StringSorter.cs
- TcpTransportBindingElement.cs
- FaultHandlingFilter.cs
- XPathExpr.cs
- SoapUnknownHeader.cs
- ArgumentException.cs
- PagePropertiesChangingEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- SmtpDateTime.cs
- DesignTimeVisibleAttribute.cs
- PolyBezierSegment.cs
- Point3DValueSerializer.cs
- NonSerializedAttribute.cs
- ReadOnlyDataSource.cs
- StylusCaptureWithinProperty.cs
- WorkflowApplicationTerminatedException.cs
- SqlTopReducer.cs
- MethodInfo.cs
- HttpResponseHeader.cs
- DataGridViewCheckBoxColumn.cs
- HierarchicalDataBoundControl.cs
- Attribute.cs
- DocumentOutline.cs
- XmlReflectionMember.cs
- ZipArchive.cs
- ConfigurationException.cs
- TextAction.cs
- XamlValidatingReader.cs
- ImageKeyConverter.cs
- DocumentViewerHelper.cs
- CodeTypeDeclaration.cs
- XmlCharCheckingWriter.cs
- FunctionDescription.cs
- Command.cs
- ErrorHandlerFaultInfo.cs
- ToolboxBitmapAttribute.cs
- XmlSchemaDatatype.cs
- ScriptManagerProxy.cs
- SiteMapHierarchicalDataSourceView.cs
- AudioException.cs
- OrderedDictionary.cs
- ObjectItemLoadingSessionData.cs
- XmlQueryOutput.cs
- _SecureChannel.cs
- Clipboard.cs
- PageContent.cs