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
- LocalBuilder.cs
- DesignTimeParseData.cs
- FramingEncoders.cs
- ToolStripPanelRow.cs
- PartManifestEntry.cs
- RequestValidator.cs
- DynamicEndpoint.cs
- FlowPosition.cs
- XamlReader.cs
- GACIdentityPermission.cs
- PackUriHelper.cs
- LogEntry.cs
- TextFindEngine.cs
- OdbcError.cs
- XmlAttributeOverrides.cs
- RegexGroupCollection.cs
- ComMethodElement.cs
- DesignTimeParseData.cs
- EdmValidator.cs
- AppearanceEditorPart.cs
- LoginView.cs
- SQLDateTimeStorage.cs
- Group.cs
- XmlStreamNodeWriter.cs
- PtsHost.cs
- IPipelineRuntime.cs
- RuntimeConfig.cs
- DataBoundControlActionList.cs
- DataControlImageButton.cs
- ResponseStream.cs
- XPathDocumentIterator.cs
- SiteOfOriginContainer.cs
- TextDecorations.cs
- AlternateView.cs
- WebBrowserContainer.cs
- StylusPointPropertyInfoDefaults.cs
- LoginView.cs
- COAUTHIDENTITY.cs
- CompositeFontInfo.cs
- OverrideMode.cs
- RuntimeConfig.cs
- MaterialGroup.cs
- ClassicBorderDecorator.cs
- DesignerDataTable.cs
- ByteRangeDownloader.cs
- Stylesheet.cs
- TemplateKey.cs
- ActivityInstanceMap.cs
- PartialCachingAttribute.cs
- CodeObjectCreateExpression.cs
- EqualityArray.cs
- DateTimeOffsetConverter.cs
- CompilationUnit.cs
- Funcletizer.cs
- TagMapCollection.cs
- QilNode.cs
- SystemIPInterfaceStatistics.cs
- BaseCAMarshaler.cs
- ChangeTracker.cs
- ReachVisualSerializer.cs
- VisualStyleRenderer.cs
- COM2ExtendedTypeConverter.cs
- TimeSpanFormat.cs
- AutoGeneratedFieldProperties.cs
- exports.cs
- PersonalizationStateInfo.cs
- TimeZone.cs
- WebPartDesigner.cs
- Root.cs
- SqlDataSourceSelectingEventArgs.cs
- RemotingConfigParser.cs
- PersonalizablePropertyEntry.cs
- ComponentEvent.cs
- IsolatedStorageFile.cs
- GenericEnumConverter.cs
- ToolStripCustomTypeDescriptor.cs
- Color.cs
- Update.cs
- BigInt.cs
- RepeatBehavior.cs
- ClientSettingsSection.cs
- DBAsyncResult.cs
- Annotation.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- PoisonMessageException.cs
- TextEndOfSegment.cs
- MarkupExtensionReturnTypeAttribute.cs
- ReferenceEqualityComparer.cs
- RemotingConfiguration.cs
- RecognizedPhrase.cs
- DynamicRendererThreadManager.cs
- FunctionImportElement.cs
- PrintPageEvent.cs
- ValidationEventArgs.cs
- ToolStripStatusLabel.cs
- EarlyBoundInfo.cs
- DoubleConverter.cs
- Keywords.cs
- CommandBindingCollection.cs