Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Variant.cs
- InstallerTypeAttribute.cs
- SQLDoubleStorage.cs
- BufferModeSettings.cs
- FormViewUpdateEventArgs.cs
- KeyProperty.cs
- TraceContextEventArgs.cs
- InputEventArgs.cs
- RoleManagerEventArgs.cs
- SupportsEventValidationAttribute.cs
- HtmlFormAdapter.cs
- CodeTypeReferenceExpression.cs
- InternalsVisibleToAttribute.cs
- TypeToken.cs
- ArglessEventHandlerProxy.cs
- MappingSource.cs
- Pair.cs
- TextBoxBase.cs
- DispatcherExceptionEventArgs.cs
- Encoder.cs
- ArrayElementGridEntry.cs
- PageParserFilter.cs
- DataObjectEventArgs.cs
- RegexGroup.cs
- ElasticEase.cs
- TextDocumentView.cs
- ProfessionalColorTable.cs
- EventWaitHandle.cs
- Debugger.cs
- DataRelation.cs
- NativeMethodsOther.cs
- MissingFieldException.cs
- XmlUtf8RawTextWriter.cs
- Native.cs
- __FastResourceComparer.cs
- _SecureChannel.cs
- CompModSwitches.cs
- SQLBinary.cs
- RC2.cs
- ResourcePart.cs
- UnmanagedBitmapWrapper.cs
- ObjectSecurityT.cs
- DataComponentMethodGenerator.cs
- Utils.cs
- AnonymousIdentificationModule.cs
- BezierSegment.cs
- OSFeature.cs
- SqlXmlStorage.cs
- ConfigXmlComment.cs
- TailPinnedEventArgs.cs
- ExpressionBuilder.cs
- DataRelationPropertyDescriptor.cs
- XmlFormatWriterGenerator.cs
- DesignerTransaction.cs
- WrappingXamlSchemaContext.cs
- ImageCreator.cs
- EventSinkActivity.cs
- TextTreeNode.cs
- DataShape.cs
- XmlTextReaderImpl.cs
- TextServicesManager.cs
- CompressEmulationStream.cs
- TypeDescriptor.cs
- ActivityStateRecord.cs
- NamespaceDecl.cs
- DependencyObjectValidator.cs
- AccessKeyManager.cs
- RegistrySecurity.cs
- FrameworkElement.cs
- GeometryHitTestParameters.cs
- CookieHandler.cs
- ChangeBlockUndoRecord.cs
- ContainerTracking.cs
- XPathCompileException.cs
- ScriptManagerProxy.cs
- HttpContext.cs
- BaseTemplateParser.cs
- GPPOINT.cs
- EventLevel.cs
- httpstaticobjectscollection.cs
- UnmanagedMemoryStream.cs
- AccessedThroughPropertyAttribute.cs
- OLEDB_Enum.cs
- ImageMapEventArgs.cs
- WeakHashtable.cs
- ProxyElement.cs
- DeclarativeConditionsCollection.cs
- FontStretchConverter.cs
- OdbcFactory.cs
- ProviderConnectionPointCollection.cs
- MultiBinding.cs
- WebPartConnectionsEventArgs.cs
- DbProviderManifest.cs
- ExpressionDumper.cs
- SystemEvents.cs
- Span.cs
- CalendarDataBindingHandler.cs
- OutgoingWebResponseContext.cs
- ComponentCache.cs
- XmlAtomErrorReader.cs