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
- DrawingContextWalker.cs
- TextElementAutomationPeer.cs
- RenderCapability.cs
- RSAPKCS1SignatureFormatter.cs
- DataServiceExpressionVisitor.cs
- WebBrowser.cs
- SmtpNtlmAuthenticationModule.cs
- CompatibleComparer.cs
- WebPartCatalogAddVerb.cs
- QilVisitor.cs
- DataGrid.cs
- PresentationSource.cs
- XmlCharacterData.cs
- QueryCacheEntry.cs
- safelinkcollection.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AppDomainUnloadedException.cs
- ToolStripDropDown.cs
- SiteMapNodeCollection.cs
- COMException.cs
- PropertyItemInternal.cs
- GeneratedView.cs
- ConnectionPointCookie.cs
- AuthenticationManager.cs
- TextTreeNode.cs
- ComponentCollection.cs
- RowParagraph.cs
- AsymmetricKeyExchangeDeformatter.cs
- CommandLibraryHelper.cs
- EventWaitHandle.cs
- ObjectComplexPropertyMapping.cs
- ScaleTransform.cs
- XamlSerializer.cs
- Wildcard.cs
- FixedNode.cs
- KeyInterop.cs
- DropShadowEffect.cs
- XhtmlBasicLinkAdapter.cs
- ScriptResourceHandler.cs
- ScriptingProfileServiceSection.cs
- AdapterDictionary.cs
- CacheEntry.cs
- CustomAssemblyResolver.cs
- ReadOnlyDataSourceView.cs
- ClientUtils.cs
- Semaphore.cs
- Converter.cs
- ValueType.cs
- ImageListStreamer.cs
- MarshalDirectiveException.cs
- WebPartConnectionsCancelEventArgs.cs
- WorkflowElementDialog.cs
- ObjectTag.cs
- _AutoWebProxyScriptEngine.cs
- TextPointer.cs
- SafeNativeMethodsOther.cs
- PageCatalogPart.cs
- CustomTypeDescriptor.cs
- CombinedGeometry.cs
- Util.cs
- SqlNode.cs
- CuspData.cs
- XmlQueryRuntime.cs
- BitmapSource.cs
- SchemaNotation.cs
- DiscoveryClientDocuments.cs
- SyndicationDeserializer.cs
- EntityDescriptor.cs
- AnonymousIdentificationSection.cs
- InstalledVoice.cs
- basevalidator.cs
- LinqDataSourceContextData.cs
- WebRequest.cs
- FontCollection.cs
- ButtonStandardAdapter.cs
- oledbmetadatacollectionnames.cs
- Rfc2898DeriveBytes.cs
- ValidationRuleCollection.cs
- Aggregates.cs
- ConfigurationErrorsException.cs
- LinkedList.cs
- ContextMenuStripGroup.cs
- ServiceDescriptionImporter.cs
- StorageTypeMapping.cs
- TextHidden.cs
- AppDomain.cs
- WCFServiceClientProxyGenerator.cs
- QuaternionRotation3D.cs
- ElapsedEventArgs.cs
- KeyBinding.cs
- WebPartConnectionsDisconnectVerb.cs
- UInt64Storage.cs
- RoleManagerSection.cs
- Propagator.Evaluator.cs
- JobStaple.cs
- Funcletizer.cs
- ConfigurationValidatorBase.cs
- InvalidEnumArgumentException.cs
- SelectingProviderEventArgs.cs
- ResourceExpressionEditorSheet.cs