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
- SiteMapDataSourceView.cs
- ListViewItemCollectionEditor.cs
- WCFServiceClientProxyGenerator.cs
- WindowsFormsHostAutomationPeer.cs
- DataSourceControlBuilder.cs
- PlainXmlWriter.cs
- CodeObject.cs
- DataGridCommandEventArgs.cs
- RightsController.cs
- EncoderBestFitFallback.cs
- IgnoreFlushAndCloseStream.cs
- MessageQueueConverter.cs
- CompressEmulationStream.cs
- ListViewGroupItemCollection.cs
- HtmlSelect.cs
- ScrollProviderWrapper.cs
- ActivityValidator.cs
- safesecurityhelperavalon.cs
- _HeaderInfoTable.cs
- LineVisual.cs
- XmlSchemaAny.cs
- KnownBoxes.cs
- KeyGestureConverter.cs
- SqlRewriteScalarSubqueries.cs
- DataPagerFieldCommandEventArgs.cs
- Activator.cs
- DataBindEngine.cs
- FamilyTypeface.cs
- Variant.cs
- DictionarySectionHandler.cs
- WebBrowserNavigatingEventHandler.cs
- RelationshipDetailsRow.cs
- OAVariantLib.cs
- ShaderEffect.cs
- Hyperlink.cs
- CommonGetThemePartSize.cs
- RayHitTestParameters.cs
- LogReservationCollection.cs
- MenuItemStyleCollectionEditor.cs
- CheckedListBox.cs
- X509CertificateTrustedIssuerElement.cs
- BinHexEncoding.cs
- SamlAssertionKeyIdentifierClause.cs
- RootBrowserWindow.cs
- WebPartCollection.cs
- XPathMessageFilterTable.cs
- XmlSchemaSubstitutionGroup.cs
- _Events.cs
- MetadataSource.cs
- DataTrigger.cs
- NumericUpDown.cs
- SeparatorAutomationPeer.cs
- OpenTypeLayout.cs
- ResolveMatches11.cs
- DirectionalLight.cs
- DoubleIndependentAnimationStorage.cs
- CodeArrayIndexerExpression.cs
- GlyphsSerializer.cs
- XsltConvert.cs
- TraceEventCache.cs
- SqlCacheDependencyDatabase.cs
- XhtmlBasicTextBoxAdapter.cs
- SecondaryViewProvider.cs
- WindowsListView.cs
- SqlError.cs
- ScopelessEnumAttribute.cs
- securitycriticaldataClass.cs
- IncrementalCompileAnalyzer.cs
- ServiceNameElementCollection.cs
- RegisteredArrayDeclaration.cs
- Keyboard.cs
- RpcCryptoRequest.cs
- CngKeyCreationParameters.cs
- TraceSwitch.cs
- WeakEventManager.cs
- BitArray.cs
- FontCollection.cs
- Stacktrace.cs
- BitmapSourceSafeMILHandle.cs
- DocumentationServerProtocol.cs
- SchemaTableColumn.cs
- WebScriptEnablingElement.cs
- ComPlusInstanceContextInitializer.cs
- CmsInterop.cs
- IISMapPath.cs
- BuildDependencySet.cs
- DbParameterCollectionHelper.cs
- DispatcherExceptionFilterEventArgs.cs
- ImageButton.cs
- GetResponse.cs
- PauseStoryboard.cs
- TreeNodeEventArgs.cs
- HttpModuleCollection.cs
- ScriptHandlerFactory.cs
- BuildProvidersCompiler.cs
- XmlSerializerVersionAttribute.cs
- ContentPlaceHolder.cs
- TransportElement.cs
- Crypto.cs
- RuleProcessor.cs