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
- DataBindingHandlerAttribute.cs
- PropertyPathConverter.cs
- DataGridHelper.cs
- AsnEncodedData.cs
- smtppermission.cs
- SmiRequestExecutor.cs
- DbReferenceCollection.cs
- SQLBytesStorage.cs
- EmissiveMaterial.cs
- GregorianCalendarHelper.cs
- TextTreeObjectNode.cs
- COM2ColorConverter.cs
- Journaling.cs
- ProcessThreadCollection.cs
- SqlWorkflowInstanceStore.cs
- XmlFormatReaderGenerator.cs
- ComponentCollection.cs
- DragSelectionMessageFilter.cs
- RtfFormatStack.cs
- ManipulationPivot.cs
- DocumentViewer.cs
- TreeNodeStyle.cs
- WebServiceErrorEvent.cs
- WebServiceErrorEvent.cs
- BasicHttpBindingCollectionElement.cs
- FieldNameLookup.cs
- ConfigurationException.cs
- SignedXml.cs
- InfoCardBaseException.cs
- diagnosticsswitches.cs
- AsyncContentLoadedEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- Activator.cs
- EventProviderWriter.cs
- webbrowsersite.cs
- FormViewModeEventArgs.cs
- SharedStream.cs
- DbCommandDefinition.cs
- XmlByteStreamWriter.cs
- ProxyElement.cs
- DetailsViewInsertEventArgs.cs
- ExtensionDataReader.cs
- OleDbConnectionInternal.cs
- Model3D.cs
- BufferedWebEventProvider.cs
- DataGridPageChangedEventArgs.cs
- SingleBodyParameterMessageFormatter.cs
- CompletedAsyncResult.cs
- EventManager.cs
- TraceUtils.cs
- AstNode.cs
- BinaryObjectInfo.cs
- PropertyRecord.cs
- VisualBrush.cs
- DesignerValidatorAdapter.cs
- Attributes.cs
- HttpModuleAction.cs
- BasicBrowserDialog.cs
- DebugView.cs
- MobileControlDesigner.cs
- WeakHashtable.cs
- DocumentViewerBaseAutomationPeer.cs
- ButtonAutomationPeer.cs
- ListItem.cs
- StrongNameHelpers.cs
- CodeExporter.cs
- Path.cs
- HandleRef.cs
- _CookieModule.cs
- HebrewCalendar.cs
- ServiceDefaults.cs
- JumpList.cs
- Parameter.cs
- DataList.cs
- SecurityAttributeGenerationHelper.cs
- WebServiceErrorEvent.cs
- HtmlTableCellCollection.cs
- NotImplementedException.cs
- SmiEventSink_Default.cs
- securitycriticaldataClass.cs
- SoapClientProtocol.cs
- ExpandedWrapper.cs
- ClientConvert.cs
- AppLevelCompilationSectionCache.cs
- StreamWriter.cs
- WizardStepBase.cs
- webclient.cs
- UnsafeNativeMethodsCLR.cs
- ImportContext.cs
- SecurityHelper.cs
- CompoundFileReference.cs
- CrossSiteScriptingValidation.cs
- DashStyles.cs
- PageContentAsyncResult.cs
- NumericUpDown.cs
- PrePostDescendentsWalker.cs
- FileDetails.cs
- Durable.cs
- SetterBase.cs
- ScriptIgnoreAttribute.cs