Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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
- Exceptions.cs
- AssociationEndMember.cs
- WsdlParser.cs
- DataGridViewRow.cs
- PageRanges.cs
- SubclassTypeValidator.cs
- TableAdapterManagerMethodGenerator.cs
- XmlElementCollection.cs
- CornerRadius.cs
- ConsoleCancelEventArgs.cs
- TextParagraphProperties.cs
- NoPersistScope.cs
- PasswordDeriveBytes.cs
- XPathBinder.cs
- XPathBuilder.cs
- _NegotiateClient.cs
- UIElement3D.cs
- DataGridViewDataConnection.cs
- ScriptDescriptor.cs
- SecurityPolicySection.cs
- WebPartConnectionsCancelVerb.cs
- ClientTargetCollection.cs
- ParamArrayAttribute.cs
- Asn1IntegerConverter.cs
- InternalCache.cs
- ISO2022Encoding.cs
- Knowncolors.cs
- StringSorter.cs
- SafeLibraryHandle.cs
- DatagramAdapter.cs
- FilterQueryOptionExpression.cs
- ToolboxItem.cs
- ApplicationManager.cs
- ObjectStorage.cs
- OpenTypeLayoutCache.cs
- Label.cs
- GridEntryCollection.cs
- UrlPath.cs
- SourceFilter.cs
- Config.cs
- SqlProviderUtilities.cs
- ArraySegment.cs
- FormsAuthenticationUser.cs
- ExternalFile.cs
- Scene3D.cs
- CompoundFileStorageReference.cs
- DebugHandleTracker.cs
- RequestCachePolicy.cs
- ProviderCommandInfoUtils.cs
- ButtonChrome.cs
- JpegBitmapEncoder.cs
- NumberSubstitution.cs
- StrokeDescriptor.cs
- EngineSiteSapi.cs
- TextContainer.cs
- WorkflowServiceAttributesTypeConverter.cs
- CodeBinaryOperatorExpression.cs
- SecurityListenerSettingsLifetimeManager.cs
- BitmapDownload.cs
- BlockUIContainer.cs
- DataGridViewSelectedCellCollection.cs
- FontDifferentiator.cs
- QuotedStringWriteStateInfo.cs
- TextSimpleMarkerProperties.cs
- QilFactory.cs
- XmlNamespaceManager.cs
- OptimisticConcurrencyException.cs
- CapabilitiesPattern.cs
- LinearQuaternionKeyFrame.cs
- HttpResponseInternalWrapper.cs
- CharAnimationBase.cs
- Int32EqualityComparer.cs
- Helper.cs
- HiddenField.cs
- FontDifferentiator.cs
- ContextProperty.cs
- ResizeGrip.cs
- TabItem.cs
- SelectionRange.cs
- TaskFileService.cs
- WhitespaceRuleReader.cs
- DataGridCellsPresenter.cs
- ImageField.cs
- Console.cs
- Column.cs
- ObjectDataSourceSelectingEventArgs.cs
- AnchoredBlock.cs
- PassportAuthentication.cs
- CompiledScopeCriteria.cs
- KnownTypesProvider.cs
- XmlSchemaDatatype.cs
- SortExpressionBuilder.cs
- LayoutDump.cs
- DBCommandBuilder.cs
- FontStretches.cs
- BitConverter.cs
- RemotingException.cs
- OpenFileDialog.cs
- ScriptRef.cs
- DataGridViewRowPostPaintEventArgs.cs