Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ColumnWidthChangingEvent.cs / 1305376 / 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
- CompiledIdentityConstraint.cs
- PerspectiveCamera.cs
- NavigationService.cs
- PageContent.cs
- TreeViewEvent.cs
- EllipseGeometry.cs
- TextModifier.cs
- ReadOnlyDictionary.cs
- ListViewDeleteEventArgs.cs
- Propagator.ExtentPlaceholderCreator.cs
- JavaScriptSerializer.cs
- PersianCalendar.cs
- GeometryGroup.cs
- RegexBoyerMoore.cs
- ChameleonKey.cs
- AutoCompleteStringCollection.cs
- ListViewItem.cs
- SafeFileMappingHandle.cs
- XslNumber.cs
- GorillaCodec.cs
- DBNull.cs
- ContractMethodParameterInfo.cs
- ToolStripScrollButton.cs
- SuppressIldasmAttribute.cs
- EntityDataSourceEntitySetNameItem.cs
- BindingEntityInfo.cs
- XmlWrappingReader.cs
- Vector3DValueSerializer.cs
- PlaceHolder.cs
- ResourceType.cs
- TextTrailingWordEllipsis.cs
- ApplicationSettingsBase.cs
- CommonDialog.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DrawListViewColumnHeaderEventArgs.cs
- WebServiceFault.cs
- FamilyMap.cs
- ComplexObject.cs
- UnsafeNativeMethods.cs
- _SingleItemRequestCache.cs
- CompressionTransform.cs
- HelpEvent.cs
- SizeAnimationUsingKeyFrames.cs
- InputLanguage.cs
- SafeNativeMethods.cs
- EntityDesignerBuildProvider.cs
- FormParameter.cs
- FormViewUpdateEventArgs.cs
- UInt16.cs
- BuilderPropertyEntry.cs
- SqlDataAdapter.cs
- StringToken.cs
- AuthorizationSection.cs
- HuffCodec.cs
- GroupBoxRenderer.cs
- ThemeDictionaryExtension.cs
- SchemaConstraints.cs
- FormattedTextSymbols.cs
- DataServiceQuery.cs
- CrossAppDomainChannel.cs
- CommandDevice.cs
- FileUtil.cs
- ObjectAnimationUsingKeyFrames.cs
- XmlWriterSettings.cs
- PrintDocument.cs
- WebPartTracker.cs
- Identity.cs
- Activator.cs
- xsdvalidator.cs
- AlignmentXValidation.cs
- TraceHandlerErrorFormatter.cs
- Separator.cs
- LineMetrics.cs
- UidManager.cs
- DataGridColumnHeaderAutomationPeer.cs
- HtmlTableRow.cs
- QfeChecker.cs
- KerberosReceiverSecurityToken.cs
- SynchronizingStream.cs
- CloseCryptoHandleRequest.cs
- MessageDecoder.cs
- WebExceptionStatus.cs
- ButtonBase.cs
- IsolatedStorageException.cs
- QueryContinueDragEvent.cs
- DataBoundLiteralControl.cs
- XmlElementAttributes.cs
- DataColumnPropertyDescriptor.cs
- ManipulationDelta.cs
- PropertyGridEditorPart.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ProcessHostConfigUtils.cs
- CryptoStream.cs
- CommandValueSerializer.cs
- PropertyChangedEventManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ToolboxDataAttribute.cs
- SafeLibraryHandle.cs
- FullTextBreakpoint.cs
- ControlPropertyNameConverter.cs