Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / ColumnWidthChangingEvent.cs / 1 / ColumnWidthChangingEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.ComponentModel; ///public class ColumnWidthChangingEventArgs : CancelEventArgs { int columnIndex; int newWidth; /// /// /// Creates a new ColumnWidthChanging event /// public ColumnWidthChangingEventArgs(int columnIndex, int newWidth, bool cancel) : base (cancel) { this.columnIndex = columnIndex; this.newWidth = newWidth; } ////// /// Creates a new ColumnWidthChanging event /// public ColumnWidthChangingEventArgs(int columnIndex, int newWidth) : base() { this.columnIndex = columnIndex; this.newWidth = newWidth; } ////// /// Returns the index of the column header whose width is changing /// public int ColumnIndex { get { return this.columnIndex; } } ////// /// Returns the new width for the column header who is changing /// public int NewWidth { get { return this.newWidth; } set { this.newWidth = value; } } } } // 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.ComponentModel; ///public class ColumnWidthChangingEventArgs : CancelEventArgs { int columnIndex; int newWidth; /// /// /// Creates a new ColumnWidthChanging event /// public ColumnWidthChangingEventArgs(int columnIndex, int newWidth, bool cancel) : base (cancel) { this.columnIndex = columnIndex; this.newWidth = newWidth; } ////// /// Creates a new ColumnWidthChanging event /// public ColumnWidthChangingEventArgs(int columnIndex, int newWidth) : base() { this.columnIndex = columnIndex; this.newWidth = newWidth; } ////// /// Returns the index of the column header whose width is changing /// public int ColumnIndex { get { return this.columnIndex; } } ////// /// Returns the new width for the column header who is changing /// public int NewWidth { get { return this.newWidth; } set { this.newWidth = value; } } } } // 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
- RuntimeResourceSet.cs
- SqlUserDefinedTypeAttribute.cs
- InvokeMethodDesigner.xaml.cs
- QuerySafeNavigator.cs
- IODescriptionAttribute.cs
- NullableLongAverageAggregationOperator.cs
- DataTableReaderListener.cs
- DrawingContextWalker.cs
- SinglePhaseEnlistment.cs
- MimeBasePart.cs
- ScriptControlManager.cs
- ProcessModelInfo.cs
- CommandField.cs
- BuildDependencySet.cs
- MenuItemCollection.cs
- Debug.cs
- XmlCustomFormatter.cs
- ReservationCollection.cs
- TextTreeRootNode.cs
- Operator.cs
- HttpCachePolicyElement.cs
- XmlSchemaAttribute.cs
- GroupQuery.cs
- IntSecurity.cs
- RuntimeHelpers.cs
- BitHelper.cs
- COM2IDispatchConverter.cs
- ValueProviderWrapper.cs
- RegisteredExpandoAttribute.cs
- InputMethod.cs
- ExtendedProperty.cs
- PocoEntityKeyStrategy.cs
- PersonalizationAdministration.cs
- ShimAsPublicXamlType.cs
- ItemTypeToolStripMenuItem.cs
- FormsAuthenticationUser.cs
- ArrayTypeMismatchException.cs
- DownloadProgressEventArgs.cs
- ConfigurationElement.cs
- InfoCardTrace.cs
- SupportsEventValidationAttribute.cs
- DbReferenceCollection.cs
- TextAdaptor.cs
- AndCondition.cs
- DbConnectionStringCommon.cs
- ToolStripTemplateNode.cs
- cookiecollection.cs
- ComponentDispatcher.cs
- CommandManager.cs
- _NegotiateClient.cs
- Funcletizer.cs
- WorkflowRuntimeServiceElementCollection.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ComEventsHelper.cs
- HtmlControl.cs
- SqlFileStream.cs
- DataServiceContext.cs
- Win32MouseDevice.cs
- CellConstantDomain.cs
- TypeInformation.cs
- LocalizationParserHooks.cs
- TextEvent.cs
- GlobalAclOperationRequirement.cs
- ConfigurationLocationCollection.cs
- FontCollection.cs
- ServiceRoute.cs
- XamlToRtfParser.cs
- HttpException.cs
- XmlSchemaElement.cs
- externdll.cs
- KoreanLunisolarCalendar.cs
- BuilderPropertyEntry.cs
- NameValueFileSectionHandler.cs
- SecurityPolicySection.cs
- ContextStaticAttribute.cs
- PrePostDescendentsWalker.cs
- AssemblyBuilderData.cs
- CharacterBuffer.cs
- MdiWindowListStrip.cs
- CharEntityEncoderFallback.cs
- ValueSerializerAttribute.cs
- Animatable.cs
- MimeMapping.cs
- Span.cs
- RelationshipDetailsRow.cs
- DesignerRegionMouseEventArgs.cs
- CodeAccessPermission.cs
- FlowchartSizeFeature.cs
- InstancePersistenceException.cs
- DPCustomTypeDescriptor.cs
- DataTableExtensions.cs
- DebuggerService.cs
- Guid.cs
- DiscoveryProxy.cs
- OperationCanceledException.cs
- DescendantQuery.cs
- HtmlImage.cs
- ContextMenuStrip.cs
- SystemParameters.cs
- InstancePersistenceException.cs