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
- TransactionManagerProxy.cs
- PagedDataSource.cs
- ControlCachePolicy.cs
- CursorConverter.cs
- QuaternionConverter.cs
- Size3DConverter.cs
- Rfc2898DeriveBytes.cs
- SchemaImporter.cs
- StyleSelector.cs
- Evidence.cs
- CompiledRegexRunner.cs
- StorageMappingItemLoader.cs
- X509SubjectKeyIdentifierClause.cs
- PostBackOptions.cs
- BasicViewGenerator.cs
- UIElementParagraph.cs
- _SslSessionsCache.cs
- SQLInt16Storage.cs
- XsdDataContractImporter.cs
- Run.cs
- DurationConverter.cs
- NamedObject.cs
- IApplicationTrustManager.cs
- HtmlWindow.cs
- Behavior.cs
- RuntimeEnvironment.cs
- SessionIDManager.cs
- WebZone.cs
- PropertyRef.cs
- ComboBox.cs
- AppliedDeviceFiltersDialog.cs
- CompoundFileStorageReference.cs
- XmlSchemaGroup.cs
- SchemaCollectionCompiler.cs
- FilePresentation.cs
- ViewStateException.cs
- XmlBoundElement.cs
- ConnectionsZoneAutoFormat.cs
- FontCollection.cs
- X509IssuerSerialKeyIdentifierClause.cs
- Rectangle.cs
- BinaryObjectInfo.cs
- SQLGuidStorage.cs
- ZipIOFileItemStream.cs
- MimeFormatter.cs
- listitem.cs
- WebBrowserSiteBase.cs
- ExpandedWrapper.cs
- EntityModelSchemaGenerator.cs
- MaskedTextBox.cs
- DodSequenceMerge.cs
- EntryPointNotFoundException.cs
- ValidationHelper.cs
- SecurityCriticalDataForSet.cs
- EventMappingSettingsCollection.cs
- PageEventArgs.cs
- Material.cs
- oledbmetadatacolumnnames.cs
- BulletedListEventArgs.cs
- MaskDesignerDialog.cs
- SqlWorkflowInstanceStoreLock.cs
- XamlSerializerUtil.cs
- HelpEvent.cs
- ConnectionStringsSection.cs
- DataSourceView.cs
- XmlAutoDetectWriter.cs
- DetailsViewRow.cs
- RequestBringIntoViewEventArgs.cs
- MatchingStyle.cs
- ConditionalAttribute.cs
- AssignDesigner.xaml.cs
- ValueCollectionParameterReader.cs
- QilReplaceVisitor.cs
- MenuItem.cs
- _LazyAsyncResult.cs
- RectAnimation.cs
- Lease.cs
- Stylus.cs
- QuaternionRotation3D.cs
- DesignerOptionService.cs
- DefaultSerializationProviderAttribute.cs
- MetadataUtil.cs
- DependencyObject.cs
- QueryExecutionOption.cs
- VisualTreeHelper.cs
- InteropEnvironment.cs
- Debug.cs
- MetadataItem.cs
- Size.cs
- MessageQueueInstaller.cs
- TransformConverter.cs
- ImmutableCollection.cs
- FrameworkRichTextComposition.cs
- UIServiceHelper.cs
- AsymmetricSecurityBindingElement.cs
- PrintSchema.cs
- ExpressionQuoter.cs
- ReadOnlyCollectionBase.cs
- RouteData.cs
- serverconfig.cs