Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowHeightInfoNeededEventArgs.cs / 1305376 / 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
- MessagePartProtectionMode.cs
- HttpFileCollection.cs
- TypeNameConverter.cs
- Activator.cs
- XamlTypeMapper.cs
- GetCertificateRequest.cs
- TextDecorations.cs
- TakeQueryOptionExpression.cs
- DeviceContext2.cs
- Stopwatch.cs
- HostingEnvironment.cs
- ReadWriteSpinLock.cs
- Context.cs
- Stack.cs
- CodeComment.cs
- DesignerWebPartChrome.cs
- NavigationProgressEventArgs.cs
- SplashScreenNativeMethods.cs
- FileInfo.cs
- RepeaterCommandEventArgs.cs
- TableChangeProcessor.cs
- XmlSerializer.cs
- InputMethodStateTypeInfo.cs
- DispatcherExceptionFilterEventArgs.cs
- Socket.cs
- ActiveXHelper.cs
- TemplatedWizardStep.cs
- BitmapImage.cs
- EdmItemCollection.OcAssemblyCache.cs
- TableLayoutStyle.cs
- SmiContextFactory.cs
- DecoderExceptionFallback.cs
- IconConverter.cs
- FieldReference.cs
- CodeDomSerializerException.cs
- TraceUtility.cs
- Activation.cs
- XmlSchemaSimpleType.cs
- WebPartsPersonalization.cs
- BookmarkScopeInfo.cs
- LocalClientSecuritySettingsElement.cs
- SctClaimDictionary.cs
- XPathNodeList.cs
- PersonalizationState.cs
- SingleSelectRootGridEntry.cs
- TypefaceMap.cs
- EndpointBehaviorElementCollection.cs
- Aggregates.cs
- BitStack.cs
- WebEventTraceProvider.cs
- Common.cs
- UnsafeNetInfoNativeMethods.cs
- State.cs
- DataKeyArray.cs
- _SecureChannel.cs
- StagingAreaInputItem.cs
- MarkupCompilePass2.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- PasswordDeriveBytes.cs
- HttpChannelHelpers.cs
- CollectionDataContract.cs
- CheckBoxList.cs
- Material.cs
- ValidationSummary.cs
- ExpandedWrapper.cs
- Int64Storage.cs
- XmlStringTable.cs
- ProtocolsSection.cs
- RenderOptions.cs
- RawStylusInputReport.cs
- ScriptHandlerFactory.cs
- ConfigDefinitionUpdates.cs
- GuidelineSet.cs
- WebBrowserBase.cs
- ToolStripPanelRow.cs
- HostSecurityManager.cs
- RowSpanVector.cs
- BooleanAnimationBase.cs
- UrlMappingsModule.cs
- PropertyKey.cs
- DateTimeConverter2.cs
- TextBoxAutomationPeer.cs
- ApplicationId.cs
- StrongNameUtility.cs
- StorageInfo.cs
- hresults.cs
- UriPrefixTable.cs
- ConfigurationValidatorBase.cs
- ExtentCqlBlock.cs
- __TransparentProxy.cs
- ProtectedConfigurationSection.cs
- TextUtf8RawTextWriter.cs
- Point3D.cs
- TreeNodeConverter.cs
- BrushMappingModeValidation.cs
- PenLineJoinValidation.cs
- FixedTextSelectionProcessor.cs
- LoginCancelEventArgs.cs
- LineSegment.cs
- JsonWriterDelegator.cs