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
- FontUnitConverter.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PerformanceCounterManager.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SwitchAttribute.cs
- RegistryPermission.cs
- Nodes.cs
- NamedPermissionSet.cs
- WindowProviderWrapper.cs
- PrintDialog.cs
- ServiceOperationWrapper.cs
- RegexFCD.cs
- StateFinalizationDesigner.cs
- PropertyPathConverter.cs
- SortedDictionary.cs
- CultureTableRecord.cs
- RtType.cs
- CachedPathData.cs
- DecoderReplacementFallback.cs
- Validator.cs
- Range.cs
- TextEditorMouse.cs
- SubMenuStyleCollection.cs
- SplineKeyFrames.cs
- GridViewUpdateEventArgs.cs
- CustomAttributeFormatException.cs
- XmlBoundElement.cs
- WebPageTraceListener.cs
- FileLevelControlBuilderAttribute.cs
- CustomExpression.cs
- XmlSchemaGroupRef.cs
- EntryWrittenEventArgs.cs
- WebErrorHandler.cs
- CommandTreeTypeHelper.cs
- DataGridLinkButton.cs
- RegexRunnerFactory.cs
- WsdlWriter.cs
- BamlStream.cs
- XmlSerializerFactory.cs
- XhtmlBasicTextBoxAdapter.cs
- LineServicesCallbacks.cs
- ScriptReferenceBase.cs
- EmissiveMaterial.cs
- Literal.cs
- GlyphRunDrawing.cs
- OpenFileDialog.cs
- CleanUpVirtualizedItemEventArgs.cs
- PerformanceCounterPermission.cs
- EncoderBestFitFallback.cs
- AutoGeneratedFieldProperties.cs
- PeerService.cs
- Hash.cs
- DataGridViewToolTip.cs
- AutomationPropertyInfo.cs
- ExpressionBinding.cs
- TextRunProperties.cs
- messageonlyhwndwrapper.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- TextServicesCompartmentContext.cs
- RuleEngine.cs
- UrlPath.cs
- GetPageNumberCompletedEventArgs.cs
- Activation.cs
- AssociationEndMember.cs
- SystemThemeKey.cs
- QueryReaderSettings.cs
- CodeAccessPermission.cs
- MatrixIndependentAnimationStorage.cs
- EntityCommandExecutionException.cs
- ValidationHelpers.cs
- SchemaNamespaceManager.cs
- ScriptServiceAttribute.cs
- HijriCalendar.cs
- TraceContextRecord.cs
- RulePatternOps.cs
- SafeNativeMethods.cs
- Stylesheet.cs
- SqlDataSourceQuery.cs
- StringInfo.cs
- Rules.cs
- NavigationEventArgs.cs
- KeyValuePair.cs
- Internal.cs
- DocumentGridContextMenu.cs
- TableLayoutStyle.cs
- TextBreakpoint.cs
- login.cs
- SparseMemoryStream.cs
- InfoCardTraceRecord.cs
- ImageSource.cs
- PriorityChain.cs
- __TransparentProxy.cs
- GridViewRowPresenter.cs
- WebPartCollection.cs
- Positioning.cs
- StringExpressionSet.cs
- LoadItemsEventArgs.cs
- WS2007HttpBinding.cs
- ResourceProperty.cs
- EditorPartCollection.cs