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
- SrgsGrammarCompiler.cs
- XmlIncludeAttribute.cs
- PbrsForward.cs
- CommandPlan.cs
- RadialGradientBrush.cs
- FrameworkTextComposition.cs
- SaveFileDialog.cs
- DocumentGrid.cs
- Renderer.cs
- InkCanvasSelection.cs
- ProfileGroupSettingsCollection.cs
- StubHelpers.cs
- GridViewDeleteEventArgs.cs
- WebSysDisplayNameAttribute.cs
- SqlDataSourceView.cs
- safex509handles.cs
- ToolStripLocationCancelEventArgs.cs
- ToolStripManager.cs
- Visual.cs
- TagMapInfo.cs
- Char.cs
- EmbeddedMailObjectCollectionEditor.cs
- ImageFormatConverter.cs
- CAGDesigner.cs
- SqlReorderer.cs
- BorderGapMaskConverter.cs
- WebBrowserNavigatingEventHandler.cs
- CompressStream.cs
- mactripleDES.cs
- BitmapEffectGroup.cs
- DataListItem.cs
- AsyncCallback.cs
- Comparer.cs
- versioninfo.cs
- Rect3DValueSerializer.cs
- ActivityPreviewDesigner.cs
- ResourceProviderFactory.cs
- MatrixIndependentAnimationStorage.cs
- RawMouseInputReport.cs
- DiscoveryRequestHandler.cs
- SiteMapNodeItemEventArgs.cs
- NavigationProperty.cs
- XamlReaderConstants.cs
- CodeSnippetExpression.cs
- SiteIdentityPermission.cs
- IPCCacheManager.cs
- Propagator.cs
- ServiceManager.cs
- EventDescriptorCollection.cs
- StateItem.cs
- TreeNode.cs
- Themes.cs
- GcSettings.cs
- BinaryConverter.cs
- SqlDataSourceParameterParser.cs
- _CookieModule.cs
- TraceHwndHost.cs
- Token.cs
- FormViewCommandEventArgs.cs
- SiteMapProvider.cs
- UnsafeNativeMethods.cs
- Enumerable.cs
- HTMLTagNameToTypeMapper.cs
- XPathBuilder.cs
- WebServiceReceiveDesigner.cs
- ImageEditor.cs
- SqlAliasesReferenced.cs
- SimpleHandlerBuildProvider.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- AppLevelCompilationSectionCache.cs
- OdbcReferenceCollection.cs
- Win32NamedPipes.cs
- TdsParserSafeHandles.cs
- FlowDocumentFormatter.cs
- Application.cs
- SelectedDatesCollection.cs
- UInt32Storage.cs
- HatchBrush.cs
- XmlnsCompatibleWithAttribute.cs
- Themes.cs
- CollectionViewProxy.cs
- TimeSpanStorage.cs
- Point.cs
- SqlCaseSimplifier.cs
- CheckBoxPopupAdapter.cs
- MetadataItemSerializer.cs
- CompressEmulationStream.cs
- PasswordBox.cs
- WebPartEditorApplyVerb.cs
- TextEditor.cs
- XmlSchemaAnnotated.cs
- DynamicActionMessageFilter.cs
- LineSegment.cs
- Matrix3D.cs
- MobileControlsSection.cs
- WindowsTokenRoleProvider.cs
- ObjectManager.cs
- ProfilePropertyMetadata.cs
- CommandDevice.cs
- CallTemplateAction.cs