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
- GeometryDrawing.cs
- ComIntegrationManifestGenerator.cs
- WebServicesDescriptionAttribute.cs
- DesignConnection.cs
- TextRunProperties.cs
- XmlEntity.cs
- RemotingServices.cs
- AnnouncementInnerClient11.cs
- GridViewHeaderRowPresenter.cs
- TypeListConverter.cs
- XmlHierarchicalDataSourceView.cs
- HttpProtocolReflector.cs
- DataGridBoolColumn.cs
- Column.cs
- ToolboxItemFilterAttribute.cs
- TextFormatterImp.cs
- StrokeNode.cs
- ToolStripOverflowButton.cs
- InternalControlCollection.cs
- ResourceReferenceExpressionConverter.cs
- TypeHelper.cs
- TypeBuilderInstantiation.cs
- BasicHttpMessageSecurityElement.cs
- CursorConverter.cs
- DebugManager.cs
- PackagePartCollection.cs
- TextBox.cs
- PreviewPageInfo.cs
- WebEvents.cs
- RequestUriProcessor.cs
- HashMembershipCondition.cs
- AppAction.cs
- SafeRightsManagementHandle.cs
- ProcessInfo.cs
- ByteKeyFrameCollection.cs
- log.cs
- AssemblySettingAttributes.cs
- SocketElement.cs
- CommandDevice.cs
- CodeParameterDeclarationExpression.cs
- TextLine.cs
- TreeBuilderXamlTranslator.cs
- ReadOnlyTernaryTree.cs
- ProgressPage.cs
- KnownTypeHelper.cs
- DeclaredTypeValidator.cs
- CodeDomSerializer.cs
- HttpContextWrapper.cs
- CompoundFileReference.cs
- RecipientInfo.cs
- ItemAutomationPeer.cs
- ValidationEventArgs.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ObjectQueryState.cs
- ListViewGroupCollectionEditor.cs
- Number.cs
- WebResourceAttribute.cs
- FileAuthorizationModule.cs
- Stack.cs
- TableRowCollection.cs
- DataMemberFieldEditor.cs
- _UncName.cs
- SurrogateEncoder.cs
- CustomError.cs
- StatusBarAutomationPeer.cs
- NumericUpDownAcceleration.cs
- QilBinary.cs
- TerminatorSinks.cs
- CacheManager.cs
- ListDictionaryInternal.cs
- XmlTextWriter.cs
- ForceCopyBuildProvider.cs
- GeometryGroup.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- NetMsmqSecurityElement.cs
- DefaultValueConverter.cs
- PropertyGrid.cs
- CompareValidator.cs
- CodeMethodInvokeExpression.cs
- RequestNavigateEventArgs.cs
- WindowsRichEdit.cs
- SchemeSettingElement.cs
- ArithmeticException.cs
- InputProcessorProfiles.cs
- BuilderPropertyEntry.cs
- TransformedBitmap.cs
- DataGridViewElement.cs
- SimpleTextLine.cs
- COAUTHIDENTITY.cs
- BitmapDecoder.cs
- TaiwanLunisolarCalendar.cs
- _LocalDataStoreMgr.cs
- FilterUserControlBase.cs
- BaseDataBoundControl.cs
- GridViewRow.cs
- StringFreezingAttribute.cs
- SelectionChangedEventArgs.cs
- Matrix3D.cs
- GridViewCommandEventArgs.cs
- EditorAttribute.cs