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
- ColorConverter.cs
- ScrollBar.cs
- UIPermission.cs
- Misc.cs
- StateInitialization.cs
- WindowsTooltip.cs
- OdbcConnectionString.cs
- FlowNode.cs
- SortFieldComparer.cs
- UntypedNullExpression.cs
- SourceFilter.cs
- ZoneIdentityPermission.cs
- XmlReaderDelegator.cs
- SectionVisual.cs
- EncoderBestFitFallback.cs
- SynchronizedInputProviderWrapper.cs
- relpropertyhelper.cs
- CommandEventArgs.cs
- Repeater.cs
- LineBreak.cs
- ApplicationSettingsBase.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DataColumnCollection.cs
- ConfigPathUtility.cs
- DateTimeEditor.cs
- SystemTcpStatistics.cs
- TriggerBase.cs
- InternalSendMessage.cs
- AuthenticationConfig.cs
- HashStream.cs
- ConfigXmlText.cs
- MouseButtonEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- XmlUtf8RawTextWriter.cs
- AppSecurityManager.cs
- ApplicationDirectoryMembershipCondition.cs
- WebPartVerbsEventArgs.cs
- Path.cs
- SupportsEventValidationAttribute.cs
- GroupBox.cs
- DataError.cs
- PageCatalogPart.cs
- PermissionRequestEvidence.cs
- AspCompat.cs
- PageAction.cs
- relpropertyhelper.cs
- RNGCryptoServiceProvider.cs
- FlowDocumentPageViewerAutomationPeer.cs
- HwndMouseInputProvider.cs
- StandardToolWindows.cs
- ReflectEventDescriptor.cs
- unitconverter.cs
- SerializerProvider.cs
- UniqueIdentifierService.cs
- UnlockInstanceCommand.cs
- StrongNameMembershipCondition.cs
- DataPagerFieldItem.cs
- SiteMapPath.cs
- SchemaElementLookUpTable.cs
- __ConsoleStream.cs
- Triangle.cs
- XamlDesignerSerializationManager.cs
- ManagementBaseObject.cs
- ModelVisual3D.cs
- PixelFormat.cs
- TableColumn.cs
- EncodingDataItem.cs
- StringFormat.cs
- FlowDocumentPage.cs
- ConnectionInterfaceCollection.cs
- ListViewItem.cs
- CodeAttributeArgumentCollection.cs
- InterleavedZipPartStream.cs
- EntityCommandCompilationException.cs
- SqlRowUpdatingEvent.cs
- EqualityArray.cs
- NamedPipeChannelListener.cs
- DataStorage.cs
- ProjectionPathBuilder.cs
- InputMethod.cs
- KeyFrames.cs
- Timer.cs
- SplitterCancelEvent.cs
- GeneralTransform3D.cs
- FormViewCommandEventArgs.cs
- Padding.cs
- NameTable.cs
- XmlDataCollection.cs
- CertificateManager.cs
- DesignerWebPartChrome.cs
- PanningMessageFilter.cs
- IssuedTokenParametersEndpointAddressElement.cs
- PointCollection.cs
- MulticastDelegate.cs
- HtmlValidationSummaryAdapter.cs
- SerializationUtilities.cs
- XmlSchemaAny.cs
- DefaultPropertyAttribute.cs
- SmtpNegotiateAuthenticationModule.cs
- MetadataStore.cs