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
- XmlValidatingReader.cs
- OraclePermission.cs
- PerfCounterSection.cs
- EpmAttributeNameBuilder.cs
- DecimalConverter.cs
- MemoryPressure.cs
- WeakReferenceEnumerator.cs
- SuppressMergeCheckAttribute.cs
- EntityDataSourceQueryBuilder.cs
- MetafileHeader.cs
- Typography.cs
- DotAtomReader.cs
- Label.cs
- WsdlBuildProvider.cs
- ProviderConnectionPointCollection.cs
- TransactionManager.cs
- Themes.cs
- SerializationInfo.cs
- XmlIlVisitor.cs
- Highlights.cs
- QueryReaderSettings.cs
- SecurityTokenProvider.cs
- SplineKeyFrames.cs
- Asn1IntegerConverter.cs
- ProtocolsSection.cs
- DesignerSerializationOptionsAttribute.cs
- ArcSegment.cs
- DesignerSerializationVisibilityAttribute.cs
- XmlDataSourceView.cs
- EntityEntry.cs
- SerializationSectionGroup.cs
- Point3DIndependentAnimationStorage.cs
- ToolStripItemRenderEventArgs.cs
- EdmPropertyAttribute.cs
- DataGridRelationshipRow.cs
- TextRunTypographyProperties.cs
- XmlHierarchicalEnumerable.cs
- ProfileSettings.cs
- UshortList2.cs
- DataGridViewComponentPropertyGridSite.cs
- HyperLinkColumn.cs
- BitmapMetadata.cs
- BitmapMetadata.cs
- LoginUtil.cs
- ListManagerBindingsCollection.cs
- SerialErrors.cs
- DeflateStream.cs
- XPathArrayIterator.cs
- DiscoveryDocumentLinksPattern.cs
- Substitution.cs
- CurrentChangingEventManager.cs
- ActivityDesignerHighlighter.cs
- SafeIUnknown.cs
- TextEditorThreadLocalStore.cs
- Preprocessor.cs
- UnSafeCharBuffer.cs
- CqlIdentifiers.cs
- unsafeIndexingFilterStream.cs
- DbConnectionStringBuilder.cs
- PolyLineSegment.cs
- MeasureItemEvent.cs
- BindingListCollectionView.cs
- CompiledRegexRunnerFactory.cs
- WindowsFont.cs
- IDispatchConstantAttribute.cs
- CmsInterop.cs
- QilValidationVisitor.cs
- Set.cs
- ListViewDataItem.cs
- ToolbarAUtomationPeer.cs
- RoutedEventValueSerializer.cs
- Int64AnimationUsingKeyFrames.cs
- GorillaCodec.cs
- TextCompositionEventArgs.cs
- VisualBasicSettingsHandler.cs
- DesignerRegionCollection.cs
- GenericTypeParameterBuilder.cs
- DocumentViewerBase.cs
- XmlArrayAttribute.cs
- ReceiveSecurityHeader.cs
- DataTableCollection.cs
- SoapReflectionImporter.cs
- XmlQueryOutput.cs
- TextLineResult.cs
- SymLanguageVendor.cs
- SweepDirectionValidation.cs
- MonthCalendar.cs
- DesignDataSource.cs
- EdmTypeAttribute.cs
- EventLogger.cs
- HierarchicalDataSourceControl.cs
- ScriptingJsonSerializationSection.cs
- FixedTextContainer.cs
- CultureInfoConverter.cs
- HostProtectionPermission.cs
- AnnotationComponentManager.cs
- ToolStripContextMenu.cs
- List.cs
- ConfigXmlElement.cs
- exports.cs