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
- WrappedKeySecurityTokenParameters.cs
- SecurityVersion.cs
- XmlSchemaExternal.cs
- ToolTipService.cs
- Int32AnimationBase.cs
- BulletChrome.cs
- WindowsTab.cs
- RawUIStateInputReport.cs
- _NestedSingleAsyncResult.cs
- OSFeature.cs
- XPathNode.cs
- InvalidateEvent.cs
- CodeSpit.cs
- UserPreferenceChangedEventArgs.cs
- WebContext.cs
- WindowsListViewItemCheckBox.cs
- IsolatedStorageException.cs
- ResourceContainerWrapper.cs
- DATA_BLOB.cs
- OdbcConnectionOpen.cs
- CompiledIdentityConstraint.cs
- MobileCategoryAttribute.cs
- IPipelineRuntime.cs
- ObjectSpanRewriter.cs
- AffineTransform3D.cs
- TableStyle.cs
- BoundColumn.cs
- ObjectDisposedException.cs
- CellLabel.cs
- WebPartTransformerCollection.cs
- ClientSponsor.cs
- WebPartHeaderCloseVerb.cs
- PathGeometry.cs
- ConstraintEnumerator.cs
- IsolatedStorageFile.cs
- XmlSchemaAny.cs
- GestureRecognitionResult.cs
- SecureConversationServiceElement.cs
- TemplatePartAttribute.cs
- WebPartDisplayModeCollection.cs
- PolyQuadraticBezierSegment.cs
- SQLConvert.cs
- UnionCodeGroup.cs
- Variable.cs
- EndpointInfo.cs
- CqlQuery.cs
- DbMetaDataColumnNames.cs
- DispatcherEventArgs.cs
- TreeNodeStyle.cs
- SocketConnection.cs
- Stacktrace.cs
- EntityViewGenerationAttribute.cs
- Point3DAnimation.cs
- SchemaTableOptionalColumn.cs
- BitmapEffectOutputConnector.cs
- DocumentPageView.cs
- FindCriteria.cs
- ParserExtension.cs
- EnumerableRowCollection.cs
- InnerItemCollectionView.cs
- LassoSelectionBehavior.cs
- DataServiceException.cs
- VectorAnimation.cs
- DbConnectionOptions.cs
- X509Utils.cs
- MLangCodePageEncoding.cs
- Canvas.cs
- CombinedGeometry.cs
- ClonableStack.cs
- SoapCommonClasses.cs
- WindowsToolbarItemAsMenuItem.cs
- BaseParagraph.cs
- OdbcStatementHandle.cs
- MultiplexingDispatchMessageFormatter.cs
- ToolStripDesigner.cs
- KeySplineConverter.cs
- ExpressionsCollectionConverter.cs
- XAMLParseException.cs
- InternalPermissions.cs
- DetailsViewUpdatedEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- SymmetricKey.cs
- ObjRef.cs
- HttpDictionary.cs
- PropertyInfoSet.cs
- ObjectDataSourceChooseMethodsPanel.cs
- EntityDataSourceWrapper.cs
- ParenExpr.cs
- EventLogPermissionEntryCollection.cs
- TcpTransportManager.cs
- Frame.cs
- ActiveXSite.cs
- UiaCoreApi.cs
- SystemIPInterfaceStatistics.cs
- CustomAttributeFormatException.cs
- StyleCollection.cs
- BrowserDefinition.cs
- WebBaseEventKeyComparer.cs
- METAHEADER.cs
- ContextBase.cs