Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StorageEntitySetMapping.cs
- NameService.cs
- ObjectQueryState.cs
- RuntimeConfigLKG.cs
- RectValueSerializer.cs
- Opcode.cs
- CreateRefExpr.cs
- CodeEventReferenceExpression.cs
- Preprocessor.cs
- ValidationPropertyAttribute.cs
- PrintPageEvent.cs
- SimpleModelProvider.cs
- EntityDataSource.cs
- ApplicationDirectoryMembershipCondition.cs
- NativeMethodsCLR.cs
- HitTestParameters.cs
- GroupBoxAutomationPeer.cs
- ObjectListField.cs
- AppDomainResourcePerfCounters.cs
- TailPinnedEventArgs.cs
- TextSelection.cs
- AtlasWeb.Designer.cs
- NamespaceEmitter.cs
- DataTableReaderListener.cs
- TableItemPattern.cs
- FrameworkTextComposition.cs
- InvokeProviderWrapper.cs
- ProgressBar.cs
- BoolLiteral.cs
- AutomationElementIdentifiers.cs
- PackageStore.cs
- ColorConvertedBitmap.cs
- XmlAnyElementAttributes.cs
- TextParaClient.cs
- HierarchicalDataBoundControl.cs
- IDReferencePropertyAttribute.cs
- CapabilitiesRule.cs
- LazyTextWriterCreator.cs
- ObfuscateAssemblyAttribute.cs
- PageAsyncTaskManager.cs
- OSFeature.cs
- DefaultBinder.cs
- PngBitmapDecoder.cs
- CryptoApi.cs
- XamlReaderConstants.cs
- EmptyEnumerator.cs
- FormsAuthenticationEventArgs.cs
- WebConfigurationHost.cs
- DataGridViewComboBoxEditingControl.cs
- MergeFilterQuery.cs
- CreateUserWizard.cs
- diagnosticsswitches.cs
- OracleDataAdapter.cs
- XamlInt32CollectionSerializer.cs
- StandardOleMarshalObject.cs
- ProtectedConfigurationSection.cs
- FontStretches.cs
- ManifestResourceInfo.cs
- CodeGroup.cs
- XmlCharCheckingWriter.cs
- SerialPort.cs
- Baml2006ReaderFrame.cs
- XPathSelectionIterator.cs
- Context.cs
- IsolatedStorageFileStream.cs
- PartManifestEntry.cs
- SmtpAuthenticationManager.cs
- HwndHostAutomationPeer.cs
- Resources.Designer.cs
- SignatureDescription.cs
- FormsAuthenticationTicket.cs
- ActivationArguments.cs
- QuaternionAnimationBase.cs
- webeventbuffer.cs
- CompilerInfo.cs
- ContextBase.cs
- OrthographicCamera.cs
- StringExpressionSet.cs
- X509CertificateRecipientServiceCredential.cs
- ImageConverter.cs
- BlurEffect.cs
- ProcessInputEventArgs.cs
- ValueSerializerAttribute.cs
- SelectorAutomationPeer.cs
- TextProviderWrapper.cs
- CellRelation.cs
- ClientRolePrincipal.cs
- Base64WriteStateInfo.cs
- PreviousTrackingServiceAttribute.cs
- CompiledRegexRunner.cs
- URIFormatException.cs
- TextComposition.cs
- XmlSchemaInferenceException.cs
- BitmapEffectInputConnector.cs
- RuleSettingsCollection.cs
- OperatingSystem.cs
- UrlPath.cs
- XmlSchemaAttributeGroup.cs
- ObjectParameterCollection.cs
- ServiceManager.cs