Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDesignerDataSourceView.cs
- EditorPartChrome.cs
- SortedList.cs
- RestClientProxyHandler.cs
- LicenseProviderAttribute.cs
- Label.cs
- CachedPathData.cs
- Popup.cs
- MultiPageTextView.cs
- DefaultAsyncDataDispatcher.cs
- IntegerFacetDescriptionElement.cs
- ControlAdapter.cs
- KeyToListMap.cs
- XmlSubtreeReader.cs
- ControlBuilder.cs
- TextServicesManager.cs
- RSACryptoServiceProvider.cs
- HtmlTextArea.cs
- RelatedImageListAttribute.cs
- PropertyTab.cs
- ObjectDataSource.cs
- Dictionary.cs
- WorkflowServiceHost.cs
- Tile.cs
- PermissionToken.cs
- DBNull.cs
- GACMembershipCondition.cs
- HotSpotCollection.cs
- _IPv4Address.cs
- ISAPIWorkerRequest.cs
- WmlValidationSummaryAdapter.cs
- WebContentFormatHelper.cs
- ServiceModelConfigurationSectionCollection.cs
- MessageSmuggler.cs
- PolyQuadraticBezierSegment.cs
- ExtentCqlBlock.cs
- PageHandlerFactory.cs
- SoapClientMessage.cs
- QilLoop.cs
- SQLInt32Storage.cs
- OdbcHandle.cs
- HtmlSelect.cs
- DbParameterCollectionHelper.cs
- SyndicationPerson.cs
- TypeUtil.cs
- AnchoredBlock.cs
- WmpBitmapDecoder.cs
- ReadOnlyDataSourceView.cs
- FullTextState.cs
- FailedToStartupUIException.cs
- PaintEvent.cs
- PreviewKeyDownEventArgs.cs
- CollectionViewSource.cs
- CallId.cs
- ZipIOModeEnforcingStream.cs
- DecoderReplacementFallback.cs
- TreeNodeCollectionEditor.cs
- UIElementHelper.cs
- FragmentNavigationEventArgs.cs
- PrivacyNoticeElement.cs
- XNodeValidator.cs
- NativeMethods.cs
- AnyAllSearchOperator.cs
- LocalIdKeyIdentifierClause.cs
- WinEventHandler.cs
- StringUtil.cs
- UnsafeCollabNativeMethods.cs
- StringBuilder.cs
- MarginsConverter.cs
- CodeThrowExceptionStatement.cs
- XmlLanguageConverter.cs
- FontDialog.cs
- StringValidatorAttribute.cs
- ToolStripContainer.cs
- AttributeExtensions.cs
- DesignerAdapterAttribute.cs
- TypedReference.cs
- LoadWorkflowAsyncResult.cs
- TrackingStringDictionary.cs
- BitmapEffectOutputConnector.cs
- StringToken.cs
- PrintingPermission.cs
- FreezableCollection.cs
- XMLDiffLoader.cs
- ScriptManager.cs
- XmlSerializerAssemblyAttribute.cs
- DescendantOverDescendantQuery.cs
- Models.cs
- MeshGeometry3D.cs
- _NegotiateClient.cs
- TypeToken.cs
- ManipulationLogic.cs
- PersonalizationDictionary.cs
- connectionpool.cs
- ValueType.cs
- ColumnHeaderConverter.cs
- MultiViewDesigner.cs
- ActivityCodeDomSerializer.cs
- XmlSchemaChoice.cs
- MulticastOption.cs