Code:
/ DotNET / DotNET / 8.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
- DefaultPrintController.cs
- ParserContext.cs
- WorkflowServiceHostFactory.cs
- UnSafeCharBuffer.cs
- NonClientArea.cs
- XamlBuildProvider.cs
- TreeNodeCollection.cs
- XmlUtil.cs
- ResourcesBuildProvider.cs
- HierarchicalDataSourceControl.cs
- ObjectStorage.cs
- ServiceModelActivationSectionGroup.cs
- GradientStop.cs
- DataTableReader.cs
- XXXInfos.cs
- TypeToTreeConverter.cs
- XDeferredAxisSource.cs
- PowerEase.cs
- ClientFormsIdentity.cs
- DataGridTextColumn.cs
- AuthenticationService.cs
- SymmetricAlgorithm.cs
- NamespaceQuery.cs
- ScopedKnownTypes.cs
- ServiceObjectContainer.cs
- Pens.cs
- MemoryStream.cs
- TreeViewHitTestInfo.cs
- ConfigXmlCDataSection.cs
- StringConverter.cs
- XmlAtomicValue.cs
- XmlAnyElementAttributes.cs
- FrameDimension.cs
- FrameworkName.cs
- TimeStampChecker.cs
- ConversionContext.cs
- SqlCommandBuilder.cs
- tabpagecollectioneditor.cs
- AutoCompleteStringCollection.cs
- HtmlHead.cs
- XmlSchemaSimpleContentExtension.cs
- HttpModulesSection.cs
- DataGridColumn.cs
- DesignerLinkAdapter.cs
- MsmqMessageSerializationFormat.cs
- InstanceDescriptor.cs
- MessageQueueAccessControlEntry.cs
- EventWaitHandleSecurity.cs
- LineProperties.cs
- LineGeometry.cs
- OleDbSchemaGuid.cs
- StreamGeometry.cs
- ApplicationContext.cs
- DllNotFoundException.cs
- ThicknessAnimationBase.cs
- Int64Converter.cs
- PrintPreviewGraphics.cs
- Workspace.cs
- ParseChildrenAsPropertiesAttribute.cs
- HttpModuleActionCollection.cs
- LineServicesRun.cs
- XPathBinder.cs
- SafeArrayTypeMismatchException.cs
- TextStore.cs
- Msmq4SubqueuePoisonHandler.cs
- SqlGatherConsumedAliases.cs
- XmlDomTextWriter.cs
- ExtensionQuery.cs
- SharedUtils.cs
- EnterpriseServicesHelper.cs
- EntityAdapter.cs
- OletxDependentTransaction.cs
- Walker.cs
- InputScopeAttribute.cs
- UTF32Encoding.cs
- ByteViewer.cs
- PropertyNames.cs
- unsafenativemethodstextservices.cs
- TraceProvider.cs
- HttpAsyncResult.cs
- TypeTypeConverter.cs
- HtmlDocument.cs
- AsymmetricSignatureDeformatter.cs
- ExpressionLexer.cs
- PassportPrincipal.cs
- TableCellCollection.cs
- PageWrapper.cs
- HttpsHostedTransportConfiguration.cs
- PasswordRecovery.cs
- TranslateTransform.cs
- Accessible.cs
- OdbcParameter.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ResourceManager.cs
- UnsafeNativeMethodsCLR.cs
- XmlSchemaSimpleTypeUnion.cs
- PauseStoryboard.cs
- FontStyleConverter.cs
- ObjectPropertyMapping.cs
- ProfileGroupSettings.cs