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
- ColumnClickEvent.cs
- AssemblyBuilderData.cs
- Visual.cs
- ObjectView.cs
- AccessViolationException.cs
- DoubleLinkListEnumerator.cs
- InputElement.cs
- PreservationFileWriter.cs
- ThemeDirectoryCompiler.cs
- TextWriter.cs
- DeclaredTypeValidatorAttribute.cs
- CodePageEncoding.cs
- ApplicationSecurityManager.cs
- HMACSHA256.cs
- WebEventTraceProvider.cs
- DataGridAutoFormatDialog.cs
- SerialErrors.cs
- COM2ComponentEditor.cs
- EventManager.cs
- OutputCacheProfile.cs
- Fonts.cs
- MatrixCamera.cs
- BitSet.cs
- CqlQuery.cs
- FixedTextView.cs
- ConfigurationStrings.cs
- BamlBinaryReader.cs
- ObjectTag.cs
- DataGridTableStyleMappingNameEditor.cs
- ValidationHelpers.cs
- DispatchWrapper.cs
- EraserBehavior.cs
- DataControlFieldCollection.cs
- AddInDeploymentState.cs
- StronglyTypedResourceBuilder.cs
- CorrelationTokenTypeConvertor.cs
- MULTI_QI.cs
- MemberInfoSerializationHolder.cs
- TemplateInstanceAttribute.cs
- CellNormalizer.cs
- RepeatBehaviorConverter.cs
- DataGridItem.cs
- HostedTransportConfigurationBase.cs
- Drawing.cs
- NameValuePermission.cs
- Privilege.cs
- TableRow.cs
- DataGridItem.cs
- FontFamilyConverter.cs
- RoleManagerSection.cs
- ViewGenResults.cs
- DoubleStorage.cs
- QilInvokeEarlyBound.cs
- Animatable.cs
- ContentElement.cs
- CheckBox.cs
- ServiceX509SecurityTokenProvider.cs
- DataRow.cs
- ZipQueryOperator.cs
- ItemsPanelTemplate.cs
- CodeFieldReferenceExpression.cs
- localization.cs
- XmlRootAttribute.cs
- Lease.cs
- Visual.cs
- WinFormsSpinner.cs
- PeerNameRegistration.cs
- QueryOutputWriter.cs
- IteratorFilter.cs
- ObjectContext.cs
- CommonGetThemePartSize.cs
- CustomWebEventKey.cs
- SafeCryptoHandles.cs
- ServiceDebugBehavior.cs
- UrlPropertyAttribute.cs
- NavigatorInput.cs
- XamlTypeMapper.cs
- AppearanceEditorPart.cs
- processwaithandle.cs
- TemplateControl.cs
- DataPager.cs
- SqlUnionizer.cs
- ProcessModule.cs
- PingReply.cs
- TableAdapterManagerHelper.cs
- URI.cs
- TreeNodeStyleCollection.cs
- XPathDocumentIterator.cs
- MetafileEditor.cs
- ColorKeyFrameCollection.cs
- NativeMethodsOther.cs
- CornerRadiusConverter.cs
- SettingsPropertyCollection.cs
- CustomTypeDescriptor.cs
- DocumentXmlWriter.cs
- odbcmetadatacollectionnames.cs
- Geometry3D.cs
- KeyFrames.cs
- TreeNodeCollection.cs
- HttpDebugHandler.cs