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
- PersonalizationDictionary.cs
- CoTaskMemUnicodeSafeHandle.cs
- Compiler.cs
- EntityDataSourceReferenceGroup.cs
- PrePrepareMethodAttribute.cs
- Delegate.cs
- Enum.cs
- MethodAccessException.cs
- TextServicesPropertyRanges.cs
- RelatedPropertyManager.cs
- XmlRawWriterWrapper.cs
- DynamicMetaObjectBinder.cs
- _LazyAsyncResult.cs
- CacheDependency.cs
- DesignerDataTable.cs
- AssemblyGen.cs
- HttpHandlerActionCollection.cs
- PointKeyFrameCollection.cs
- SecurityTokenValidationException.cs
- LayoutInformation.cs
- StaticExtension.cs
- HtmlFormWrapper.cs
- AssociationTypeEmitter.cs
- GridItemPatternIdentifiers.cs
- IdentityHolder.cs
- TimeSpanParse.cs
- InheritanceAttribute.cs
- ContentPropertyAttribute.cs
- ISAPIRuntime.cs
- DataTemplateKey.cs
- SimpleHandlerFactory.cs
- SmtpSection.cs
- ChildTable.cs
- Registration.cs
- RadioButtonBaseAdapter.cs
- DeobfuscatingStream.cs
- CTreeGenerator.cs
- PreviewPrintController.cs
- JournalEntryListConverter.cs
- CultureInfo.cs
- WebPartCatalogCloseVerb.cs
- KeysConverter.cs
- OutputWindow.cs
- Types.cs
- TailCallAnalyzer.cs
- FactoryGenerator.cs
- TaiwanLunisolarCalendar.cs
- DataMemberConverter.cs
- FuncTypeConverter.cs
- InstanceData.cs
- KeyConstraint.cs
- StorageAssociationSetMapping.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ErrorFormatterPage.cs
- ToolStripPanelRow.cs
- CodeExporter.cs
- TripleDES.cs
- BitmapSizeOptions.cs
- RadioButtonBaseAdapter.cs
- GridViewPageEventArgs.cs
- PropertyDescriptors.cs
- HttpEncoder.cs
- CompilerParameters.cs
- ToolStripDropDown.cs
- XPathExpr.cs
- RangeValueProviderWrapper.cs
- SiteMapProvider.cs
- TogglePatternIdentifiers.cs
- CollectionTraceRecord.cs
- ByteConverter.cs
- NamespaceQuery.cs
- RegexStringValidator.cs
- XmlSchemaSimpleContentExtension.cs
- PerfCounters.cs
- InternalResources.cs
- ReadWriteSpinLock.cs
- CoreSwitches.cs
- Brush.cs
- HelpKeywordAttribute.cs
- TextTreeRootNode.cs
- TypeExtension.cs
- RadioButtonPopupAdapter.cs
- ElementHost.cs
- HandleRef.cs
- FigureParaClient.cs
- hebrewshape.cs
- xml.cs
- EntityViewGenerator.cs
- SR.cs
- IntSecurity.cs
- Range.cs
- BindingGroup.cs
- CodeStatement.cs
- _NegoState.cs
- Table.cs
- WebPermission.cs
- SystemBrushes.cs
- UriScheme.cs
- WebBrowser.cs
- TypeSystem.cs