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
- VisemeEventArgs.cs
- Compiler.cs
- PropertyFilterAttribute.cs
- DescendentsWalkerBase.cs
- MouseOverProperty.cs
- AssemblyAttributes.cs
- Crc32.cs
- DataGridViewCellParsingEventArgs.cs
- AnimationException.cs
- CacheChildrenQuery.cs
- ContextQuery.cs
- IntSecurity.cs
- RuleSetBrowserDialog.cs
- StringValueConverter.cs
- VirtualizingStackPanel.cs
- RuleSettings.cs
- ConfigUtil.cs
- CodeSnippetExpression.cs
- EmptyEnumerable.cs
- TemplateInstanceAttribute.cs
- WizardPanel.cs
- Message.cs
- DataShape.cs
- AndCondition.cs
- InkCollectionBehavior.cs
- CqlLexer.cs
- ComplusEndpointConfigContainer.cs
- InputLanguageProfileNotifySink.cs
- MethodToken.cs
- SqlClientWrapperSmiStream.cs
- Event.cs
- CodeValidator.cs
- FileNotFoundException.cs
- WmlSelectionListAdapter.cs
- DirectoryObjectSecurity.cs
- EntityDataSourceColumn.cs
- ButtonChrome.cs
- Track.cs
- BaseValidator.cs
- DataTablePropertyDescriptor.cs
- RootDesignerSerializerAttribute.cs
- WebPartTracker.cs
- XmlQuerySequence.cs
- DocumentSequence.cs
- DataObjectEventArgs.cs
- BevelBitmapEffect.cs
- TextBox.cs
- WindowsEditBoxRange.cs
- PresentationSource.cs
- ConstructorNeedsTagAttribute.cs
- TemplateControlParser.cs
- RightsManagementEncryptedStream.cs
- StringSource.cs
- FileVersion.cs
- TransformGroup.cs
- FormsAuthentication.cs
- AssociationType.cs
- CodeGenHelper.cs
- ValueSerializerAttribute.cs
- StreamGeometry.cs
- OracleTransaction.cs
- ServiceNameElementCollection.cs
- SystemTcpStatistics.cs
- formatter.cs
- BindingSource.cs
- SqlDataSource.cs
- PermissionListSet.cs
- FileIOPermission.cs
- QilStrConcat.cs
- RegistryConfigurationProvider.cs
- BooleanFunctions.cs
- SizeAnimation.cs
- SatelliteContractVersionAttribute.cs
- ContentPathSegment.cs
- BinaryConverter.cs
- XsltContext.cs
- MessageBox.cs
- ScriptControlManager.cs
- XmlTextEncoder.cs
- ToggleButtonAutomationPeer.cs
- VectorConverter.cs
- ToolbarAUtomationPeer.cs
- CachedPathData.cs
- QilTargetType.cs
- ExpressionBuilder.cs
- compensatingcollection.cs
- ToolStripArrowRenderEventArgs.cs
- WebBrowserProgressChangedEventHandler.cs
- backend.cs
- EntityContainerAssociationSetEnd.cs
- LabelDesigner.cs
- ToolStrip.cs
- DuplexChannelFactory.cs
- _ConnectionGroup.cs
- HierarchicalDataBoundControl.cs
- WrappedIUnknown.cs
- DocumentDesigner.cs
- CommunicationObjectManager.cs
- UserPreferenceChangingEventArgs.cs
- BrushProxy.cs