Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- LookupBindingPropertiesAttribute.cs
- DynamicControlParameter.cs
- AspProxy.cs
- TextEditorTables.cs
- StringValidator.cs
- FullTextState.cs
- Authorization.cs
- MouseDevice.cs
- WebService.cs
- METAHEADER.cs
- PageHandlerFactory.cs
- CompilerTypeWithParams.cs
- RootBrowserWindow.cs
- RijndaelManaged.cs
- SafeHandle.cs
- newitemfactory.cs
- TagMapInfo.cs
- PriorityQueue.cs
- WindowsGraphicsWrapper.cs
- StaticDataManager.cs
- ApplicationBuildProvider.cs
- OrderToken.cs
- RepeaterItemCollection.cs
- AuthenticationConfig.cs
- ProxyOperationRuntime.cs
- InputScopeManager.cs
- SoapFormatter.cs
- PathFigureCollectionConverter.cs
- DataColumnCollection.cs
- FormatterServices.cs
- CellTreeNode.cs
- NativeMethods.cs
- ConnectionProviderAttribute.cs
- DbProviderServices.cs
- TableCell.cs
- TextRange.cs
- TextBox.cs
- NameValuePermission.cs
- XmlSchema.cs
- UnsafeNativeMethods.cs
- DataSourceCache.cs
- EmitterCache.cs
- GenericIdentity.cs
- InputEventArgs.cs
- SHA256Managed.cs
- recordstate.cs
- securitycriticaldataformultiplegetandset.cs
- TransformCollection.cs
- Form.cs
- VisualStyleElement.cs
- DesignerProperties.cs
- XmlNamespaceMapping.cs
- HeaderedContentControl.cs
- WaitForChangedResult.cs
- DoubleAnimationUsingPath.cs
- AccessText.cs
- EncoderParameter.cs
- XamlFigureLengthSerializer.cs
- DynamicDocumentPaginator.cs
- DataSpaceManager.cs
- AlgoModule.cs
- AppSettingsReader.cs
- ContainerFilterService.cs
- CounterCreationData.cs
- UICuesEvent.cs
- ToolStripPanelSelectionBehavior.cs
- Point3DAnimationUsingKeyFrames.cs
- LayoutEngine.cs
- AdRotatorDesigner.cs
- LinkedResource.cs
- RelativeSource.cs
- StylusLogic.cs
- SystemDiagnosticsSection.cs
- PropertyPathWorker.cs
- ValueSerializer.cs
- BindToObject.cs
- DataKeyArray.cs
- configsystem.cs
- DataPagerFieldCollection.cs
- FileChangesMonitor.cs
- XmlDataLoader.cs
- TraceLevelStore.cs
- InternalCache.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- CellIdBoolean.cs
- RawStylusInputCustomDataList.cs
- Transform3D.cs
- QueryContinueDragEventArgs.cs
- CompilationPass2TaskInternal.cs
- DataGridViewCellPaintingEventArgs.cs
- DeviceContext.cs
- Color.cs
- ProgressBarBrushConverter.cs
- OAVariantLib.cs
- TableRowsCollectionEditor.cs
- PropertyInformationCollection.cs
- XmlComplianceUtil.cs
- DataGridTextBox.cs
- TextContainerChangedEventArgs.cs
- CryptoProvider.cs