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
- SingleSelectRootGridEntry.cs
- DefaultValueConverter.cs
- ViewPort3D.cs
- CodeObject.cs
- ToolStripDropTargetManager.cs
- NullableBoolConverter.cs
- SynchronousReceiveBehavior.cs
- LayoutDump.cs
- HttpWebRequestElement.cs
- LineGeometry.cs
- XmlDataSourceView.cs
- AssertFilter.cs
- ButtonFlatAdapter.cs
- DataGridViewBand.cs
- TimerEventSubscription.cs
- TypeExtension.cs
- EvidenceBase.cs
- GridItemPattern.cs
- cache.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- EntityDataSourceChangedEventArgs.cs
- RtfControls.cs
- NameValuePair.cs
- SectionInformation.cs
- DrawingBrush.cs
- TypeTypeConverter.cs
- OracleString.cs
- PasswordRecovery.cs
- MenuItemCollection.cs
- BitmapEffectOutputConnector.cs
- PersonalizablePropertyEntry.cs
- AccessDataSource.cs
- DependencySource.cs
- EventLogConfiguration.cs
- VisualTreeHelper.cs
- WebPartTracker.cs
- TextContainerHelper.cs
- ComAdminInterfaces.cs
- DynamicActivityXamlReader.cs
- SymbolMethod.cs
- DeferredReference.cs
- SiteMapNodeCollection.cs
- Html32TextWriter.cs
- InputLanguageEventArgs.cs
- SiteMapSection.cs
- SQLBinaryStorage.cs
- RequestDescription.cs
- SqlTopReducer.cs
- _Events.cs
- AnnotationResourceChangedEventArgs.cs
- PaintEvent.cs
- Point3DIndependentAnimationStorage.cs
- VisualCollection.cs
- DBSchemaRow.cs
- TypeGeneratedEventArgs.cs
- Vars.cs
- SQLConvert.cs
- InvalidOperationException.cs
- DispatcherExceptionFilterEventArgs.cs
- BitmapSizeOptions.cs
- WebPartZoneBase.cs
- Graph.cs
- HintTextConverter.cs
- LineInfo.cs
- ServiceModelConfigurationElementCollection.cs
- ToolStripMenuItem.cs
- TextServicesManager.cs
- DataAdapter.cs
- ApplyImportsAction.cs
- SendReply.cs
- ContractInstanceProvider.cs
- SecurityCriticalDataForSet.cs
- Inflater.cs
- ColumnBinding.cs
- odbcmetadatacolumnnames.cs
- ClipboardProcessor.cs
- ProviderConnectionPointCollection.cs
- ArrayTypeMismatchException.cs
- WebPartConnection.cs
- ProcessModule.cs
- Schema.cs
- EventLogEntryCollection.cs
- Dynamic.cs
- GroupLabel.cs
- ListDictionaryInternal.cs
- Event.cs
- WebPartZoneBase.cs
- VisualStateChangedEventArgs.cs
- KnownTypes.cs
- ImageIndexConverter.cs
- IpcChannelHelper.cs
- DataGridViewCellStyleConverter.cs
- WebEventCodes.cs
- Enlistment.cs
- Matrix.cs
- CodeParameterDeclarationExpressionCollection.cs
- CodePrimitiveExpression.cs
- TextPattern.cs
- EdmTypeAttribute.cs
- ContextQuery.cs