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
- ExecutionEngineException.cs
- TemplatedMailWebEventProvider.cs
- CharacterBufferReference.cs
- EditingCoordinator.cs
- _SpnDictionary.cs
- Int64Converter.cs
- DynamicHyperLink.cs
- ConstraintCollection.cs
- DESCryptoServiceProvider.cs
- Timer.cs
- DateTimeSerializationSection.cs
- WebPartEditorApplyVerb.cs
- SessionStateSection.cs
- SqlServices.cs
- ProfileSettingsCollection.cs
- ZipIOLocalFileBlock.cs
- MonthChangedEventArgs.cs
- TemplateControl.cs
- LoginName.cs
- EtwTrace.cs
- SolidColorBrush.cs
- RecommendedAsConfigurableAttribute.cs
- TypeResolver.cs
- HtmlFormParameterWriter.cs
- StreamUpdate.cs
- WrappedReader.cs
- ContractMethodInfo.cs
- ContentType.cs
- XsdValidatingReader.cs
- RectAnimationUsingKeyFrames.cs
- CorrelationManager.cs
- IgnoreFlushAndCloseStream.cs
- HierarchicalDataSourceControl.cs
- Vector3DAnimation.cs
- FormViewUpdateEventArgs.cs
- IgnoreSection.cs
- DeflateInput.cs
- TextSearch.cs
- AssemblyBuilder.cs
- WindowsPrincipal.cs
- BinaryFormatterWriter.cs
- FontNameEditor.cs
- DynamicMethod.cs
- FormatterConverter.cs
- CharUnicodeInfo.cs
- shaper.cs
- EvidenceBase.cs
- SplitContainerDesigner.cs
- BitmapImage.cs
- BasicKeyConstraint.cs
- XmlElementList.cs
- SiteMapHierarchicalDataSourceView.cs
- HelpInfo.cs
- _ProxyChain.cs
- ZipIOCentralDirectoryBlock.cs
- CompositeDesignerAccessibleObject.cs
- DependencyPropertyAttribute.cs
- ObjectHandle.cs
- XmlObjectSerializerReadContextComplex.cs
- ListViewTableRow.cs
- Invariant.cs
- SecurityTokenAttachmentMode.cs
- ParsedRoute.cs
- RoutedEventValueSerializer.cs
- ValidatorCollection.cs
- ObjectViewListener.cs
- Int32Collection.cs
- RadioButtonAutomationPeer.cs
- CommandEventArgs.cs
- TextTreeUndoUnit.cs
- PartialTrustHelpers.cs
- RowSpanVector.cs
- UInt32Converter.cs
- BuildTopDownAttribute.cs
- HelpInfo.cs
- SecurityDocument.cs
- PeerDuplexChannelListener.cs
- PolicyException.cs
- Accessible.cs
- BuiltInExpr.cs
- WebPartMinimizeVerb.cs
- CreateDataSourceDialog.cs
- JsonQueryStringConverter.cs
- MatrixAnimationBase.cs
- LOSFormatter.cs
- PageMediaSize.cs
- MultiPageTextView.cs
- EmptyQuery.cs
- TriggerActionCollection.cs
- QueryOperationResponseOfT.cs
- DockAndAnchorLayout.cs
- SafeHandle.cs
- EncodingNLS.cs
- __ConsoleStream.cs
- BrowserCapabilitiesFactory.cs
- FontInfo.cs
- FloatAverageAggregationOperator.cs
- TextUtf8RawTextWriter.cs
- FormViewCommandEventArgs.cs
- PropertyMetadata.cs