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
- PersonalizationProviderCollection.cs
- SoapSchemaImporter.cs
- CultureMapper.cs
- EventItfInfo.cs
- UITypeEditor.cs
- HttpServerVarsCollection.cs
- SqlDuplicator.cs
- DecoderExceptionFallback.cs
- DerivedKeySecurityToken.cs
- NameSpaceEvent.cs
- HttpSocketManager.cs
- ErrorWebPart.cs
- ParameterCollection.cs
- ColorInterpolationModeValidation.cs
- CodeDelegateCreateExpression.cs
- OrderedEnumerableRowCollection.cs
- BrushProxy.cs
- X509CertificateTrustedIssuerElement.cs
- CacheVirtualItemsEvent.cs
- XPathMultyIterator.cs
- ObjectAnimationBase.cs
- HttpEncoder.cs
- XmlElementAttribute.cs
- SharedPersonalizationStateInfo.cs
- EntityDataSourceReferenceGroup.cs
- FileLoadException.cs
- BuildResult.cs
- ChannelManager.cs
- OciHandle.cs
- TypeElement.cs
- EntityDataSourceQueryBuilder.cs
- DataTemplateSelector.cs
- DesignerSerializerAttribute.cs
- TraceSection.cs
- ObjectItemCollection.cs
- CancellationTokenRegistration.cs
- ComNativeDescriptor.cs
- DateTime.cs
- ToolStripOverflowButton.cs
- CaseInsensitiveOrdinalStringComparer.cs
- GetCardDetailsRequest.cs
- ListViewUpdateEventArgs.cs
- InvalidPrinterException.cs
- ExternalCalls.cs
- AlphabeticalEnumConverter.cs
- PolyQuadraticBezierSegment.cs
- ListView.cs
- RecordConverter.cs
- LiteralTextContainerControlBuilder.cs
- MulticastDelegate.cs
- WindowsListViewSubItem.cs
- CustomValidator.cs
- TextHidden.cs
- Context.cs
- diagnosticsswitches.cs
- MatrixCamera.cs
- DataGridViewImageColumn.cs
- ConvertersCollection.cs
- BasicViewGenerator.cs
- InvalidProgramException.cs
- ResXResourceWriter.cs
- SmtpSection.cs
- FamilyMap.cs
- ThreadStartException.cs
- ProxyWebPart.cs
- ArraySubsetEnumerator.cs
- ScriptResourceHandler.cs
- CollectionDataContractAttribute.cs
- SqlParameterCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FigureHelper.cs
- TextViewDesigner.cs
- SmtpException.cs
- NotCondition.cs
- TypeLoadException.cs
- ExpressionList.cs
- OracleFactory.cs
- AudioException.cs
- PackWebRequestFactory.cs
- XmlDataSourceNodeDescriptor.cs
- FrameworkElementAutomationPeer.cs
- UIPermission.cs
- EDesignUtil.cs
- UnsafeNativeMethodsTablet.cs
- NativeMethods.cs
- HostedTransportConfigurationBase.cs
- XmlValidatingReader.cs
- FixedDocumentPaginator.cs
- DocumentAutomationPeer.cs
- DateRangeEvent.cs
- DisableDpiAwarenessAttribute.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ObjectView.cs
- DictionaryManager.cs
- ToolboxItem.cs
- RequestCache.cs
- WSFederationHttpBinding.cs
- PathGeometry.cs
- MappingModelBuildProvider.cs
- DataGridBoolColumn.cs