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
- ConfigurationLocationCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- HttpRequestTraceRecord.cs
- ToolboxItemWrapper.cs
- GraphicsPathIterator.cs
- TraceContextRecord.cs
- DispatcherHookEventArgs.cs
- dataSvcMapFileLoader.cs
- MultiBindingExpression.cs
- DataSetMappper.cs
- Vertex.cs
- StringWriter.cs
- InvokeMethodDesigner.xaml.cs
- Timer.cs
- QilReplaceVisitor.cs
- WebZone.cs
- UrlPath.cs
- SEHException.cs
- DocumentXmlWriter.cs
- ColorPalette.cs
- Int32RectConverter.cs
- uribuilder.cs
- NetPipeSection.cs
- DesignerLoader.cs
- COMException.cs
- GridView.cs
- EventManager.cs
- NetworkAddressChange.cs
- DiscardableAttribute.cs
- TickBar.cs
- Selection.cs
- CapiSymmetricAlgorithm.cs
- BindingContext.cs
- TreeBuilder.cs
- ItemContainerGenerator.cs
- WebResourceAttribute.cs
- ArrayItemReference.cs
- PageSetupDialog.cs
- DataObjectFieldAttribute.cs
- XmlQueryContext.cs
- DBConnectionString.cs
- SafeLocalMemHandle.cs
- CharacterMetricsDictionary.cs
- FlowDocumentScrollViewer.cs
- CacheForPrimitiveTypes.cs
- DateRangeEvent.cs
- ConfigurationManagerInternalFactory.cs
- PolicyDesigner.cs
- ISCIIEncoding.cs
- JumpItem.cs
- DbFunctionCommandTree.cs
- UIElementParaClient.cs
- HtmlGenericControl.cs
- MexHttpBindingElement.cs
- SHA512Managed.cs
- WorkflowInstance.cs
- FileChangesMonitor.cs
- InvalidateEvent.cs
- Profiler.cs
- CqlLexer.cs
- EpmContentDeSerializerBase.cs
- AncestorChangedEventArgs.cs
- InternalPermissions.cs
- HttpPostServerProtocol.cs
- SecUtil.cs
- LogLogRecordHeader.cs
- ComponentDesigner.cs
- PhoneCallDesigner.cs
- AppDomain.cs
- XslException.cs
- webbrowsersite.cs
- TerminatorSinks.cs
- OutputScope.cs
- Polyline.cs
- EventLogTraceListener.cs
- BamlMapTable.cs
- IISMapPath.cs
- DateTimeValueSerializer.cs
- ColumnReorderedEventArgs.cs
- ToolStripMenuItemDesigner.cs
- DeadCharTextComposition.cs
- Application.cs
- KeyEventArgs.cs
- GridLengthConverter.cs
- Emitter.cs
- StylusPointPropertyId.cs
- DbParameterHelper.cs
- BlockExpression.cs
- BulletChrome.cs
- DatatypeImplementation.cs
- DataServiceRequest.cs
- Array.cs
- XmlCharCheckingReader.cs
- WebPartZone.cs
- OneOfScalarConst.cs
- RuleAction.cs
- SrgsDocumentParser.cs
- LockedHandleGlyph.cs
- SecurityPolicySection.cs
- OleDbConnectionInternal.cs