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
- DragDeltaEventArgs.cs
- SecurityContext.cs
- WebBrowserEvent.cs
- TextBoxAutomationPeer.cs
- TextFormatterContext.cs
- InstanceStore.cs
- Point3DCollectionConverter.cs
- pingexception.cs
- RoutedEventArgs.cs
- SessionStateContainer.cs
- StaticExtensionConverter.cs
- ChineseLunisolarCalendar.cs
- TypeUtils.cs
- ComponentChangedEvent.cs
- Vector3D.cs
- PolicyException.cs
- ResponseBodyWriter.cs
- Convert.cs
- IfAction.cs
- RootProfilePropertySettingsCollection.cs
- ControlBuilder.cs
- InputProcessorProfilesLoader.cs
- Group.cs
- PathFigureCollection.cs
- ValueConversionAttribute.cs
- BitmapSourceSafeMILHandle.cs
- EntitySqlQueryCacheKey.cs
- BindValidationContext.cs
- ForwardPositionQuery.cs
- MediaTimeline.cs
- DataBindingCollectionEditor.cs
- BooleanStorage.cs
- EntityDataSourceReferenceGroup.cs
- RoutedUICommand.cs
- ImpersonateTokenRef.cs
- TraceHandlerErrorFormatter.cs
- BitSet.cs
- TranslateTransform.cs
- DateTimeOffsetConverter.cs
- ValueUtilsSmi.cs
- _TLSstream.cs
- PenThreadWorker.cs
- WebConfigurationHost.cs
- MethodBuilder.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- SortedList.cs
- ContextMenuStripGroup.cs
- ConstraintConverter.cs
- StylusDownEventArgs.cs
- VBCodeProvider.cs
- PointValueSerializer.cs
- WSSecurityPolicy.cs
- HyperLinkDesigner.cs
- unsafenativemethodsother.cs
- NCryptSafeHandles.cs
- ConnectionInterfaceCollection.cs
- SQLBytesStorage.cs
- HtmlElementErrorEventArgs.cs
- GACIdentityPermission.cs
- CheckoutException.cs
- VScrollBar.cs
- TriggerBase.cs
- WebBrowsableAttribute.cs
- ExtentCqlBlock.cs
- AccessDataSourceView.cs
- InputScopeNameConverter.cs
- IndependentAnimationStorage.cs
- DeploymentSection.cs
- TransactionsSectionGroup.cs
- ReverseQueryOperator.cs
- XmlNodeReader.cs
- InstanceOwnerException.cs
- TreeViewAutomationPeer.cs
- EmptyCollection.cs
- RoleService.cs
- Pen.cs
- AnimatedTypeHelpers.cs
- EntityTypeEmitter.cs
- AuthenticationSection.cs
- AuthStoreRoleProvider.cs
- DefaultMemberAttribute.cs
- EdmConstants.cs
- DefaultObjectMappingItemCollection.cs
- Task.cs
- HtmlInputButton.cs
- WebServiceEnumData.cs
- DiscoveryDocumentSerializer.cs
- SqlProcedureAttribute.cs
- EventWaitHandleSecurity.cs
- ModulesEntry.cs
- Column.cs
- PenLineCapValidation.cs
- TypeConvertions.cs
- MenuScrollingVisibilityConverter.cs
- followingquery.cs
- HttpClientCertificate.cs
- XpsFixedPageReaderWriter.cs
- RequestCacheManager.cs
- Padding.cs
- DataMisalignedException.cs