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
- TypeUsageBuilder.cs
- X509Extension.cs
- Deflater.cs
- AxHost.cs
- X509SecurityToken.cs
- FixedSOMElement.cs
- GlyphCache.cs
- DES.cs
- ProcessThreadCollection.cs
- Serializer.cs
- NullRuntimeConfig.cs
- ModelEditingScope.cs
- InternalConfigRoot.cs
- DefaultPropertyAttribute.cs
- APCustomTypeDescriptor.cs
- XmlSchema.cs
- OdbcFactory.cs
- BamlRecords.cs
- UIServiceHelper.cs
- StyleHelper.cs
- XslCompiledTransform.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- DataGridRelationshipRow.cs
- DataGridClipboardHelper.cs
- PagerSettings.cs
- CFStream.cs
- InvalidCastException.cs
- MultipleViewPatternIdentifiers.cs
- RegexStringValidatorAttribute.cs
- InputBinder.cs
- DataGridViewMethods.cs
- QueryOperator.cs
- LoginName.cs
- TreeNodeSelectionProcessor.cs
- GradientStop.cs
- MultipartIdentifier.cs
- InputBinder.cs
- RegexReplacement.cs
- DataSourceExpressionCollection.cs
- AuthenticationConfig.cs
- FontResourceCache.cs
- BindingExpressionUncommonField.cs
- SqlInternalConnectionTds.cs
- RadioButtonPopupAdapter.cs
- httpserverutility.cs
- WebInvokeAttribute.cs
- FloaterBaseParaClient.cs
- EdmToObjectNamespaceMap.cs
- ViewPort3D.cs
- EntityConnectionStringBuilderItem.cs
- EntityWithChangeTrackerStrategy.cs
- QuaternionValueSerializer.cs
- FlowDocument.cs
- WebBrowsableAttribute.cs
- XmlAtomicValue.cs
- PackageRelationship.cs
- CodeObjectCreateExpression.cs
- WhitespaceRuleReader.cs
- DataListDesigner.cs
- ProcessProtocolHandler.cs
- XmlName.cs
- WindowsIPAddress.cs
- XsltSettings.cs
- SqlCacheDependencyDatabase.cs
- InkCanvasAutomationPeer.cs
- MessageDecoder.cs
- TemplateBindingExpression.cs
- SecurityUtils.cs
- MetabaseSettingsIis7.cs
- SchemaObjectWriter.cs
- KeyValuePair.cs
- SizeIndependentAnimationStorage.cs
- SafeViewOfFileHandle.cs
- ImageListStreamer.cs
- ResolveCriteria.cs
- CompleteWizardStep.cs
- graph.cs
- BindingSourceDesigner.cs
- CryptoApi.cs
- DataList.cs
- oledbmetadatacollectionnames.cs
- QilTargetType.cs
- sqlnorm.cs
- RadioButton.cs
- TextSpan.cs
- AppDomainUnloadedException.cs
- SessionEndedEventArgs.cs
- LayeredChannelFactory.cs
- MemberAccessException.cs
- DoneReceivingAsyncResult.cs
- ExpressionVisitorHelpers.cs
- Span.cs
- HostedTcpTransportManager.cs
- HttpModuleAction.cs
- FileDataSource.cs
- _ConnectOverlappedAsyncResult.cs
- SqlNotificationEventArgs.cs
- InvalidFilterCriteriaException.cs
- ResourceDescriptionAttribute.cs
- PageContentAsyncResult.cs