Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ResourceWriter.cs
- SchemaAttDef.cs
- GlobalizationAssembly.cs
- ToolStripDropDownClosedEventArgs.cs
- PersonalizablePropertyEntry.cs
- Inline.cs
- EnumerableWrapperWeakToStrong.cs
- ContextBase.cs
- TrustSection.cs
- ApplicationInterop.cs
- DeclaredTypeValidator.cs
- DisplayToken.cs
- DescendentsWalker.cs
- MessageSecurityTokenVersion.cs
- MessageQueueKey.cs
- RuleSettings.cs
- ProfileParameter.cs
- BinaryMessageEncodingBindingElement.cs
- KeyEvent.cs
- TypeExtensionConverter.cs
- ISFTagAndGuidCache.cs
- AxisAngleRotation3D.cs
- CompareValidator.cs
- CodeArrayCreateExpression.cs
- HuffmanTree.cs
- EdmValidator.cs
- EditCommandColumn.cs
- DesignConnection.cs
- Maps.cs
- LabelDesigner.cs
- User.cs
- KeyTime.cs
- QuotedPairReader.cs
- RuleSetDialog.Designer.cs
- FontCacheUtil.cs
- CatalogPart.cs
- DupHandleConnectionReader.cs
- OdbcHandle.cs
- CodeCompiler.cs
- XmlQualifiedNameTest.cs
- StylusPointProperty.cs
- TaskFactory.cs
- ListViewDeletedEventArgs.cs
- SqlPersonalizationProvider.cs
- QuotedPrintableStream.cs
- ListDictionary.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HttpFormatExtensions.cs
- ContentElement.cs
- XPathScanner.cs
- GenericEnumerator.cs
- VisualBrush.cs
- WindowsProgressbar.cs
- URI.cs
- UserPreferenceChangedEventArgs.cs
- ClrPerspective.cs
- XmlSchemaImport.cs
- OpenTypeLayout.cs
- CodeMethodInvokeExpression.cs
- DataGridCell.cs
- ValidationEventArgs.cs
- SoapMessage.cs
- InputReportEventArgs.cs
- ConstantSlot.cs
- HttpCachePolicyElement.cs
- MouseButton.cs
- xmlsaver.cs
- WebBaseEventKeyComparer.cs
- ProtocolsConfigurationHandler.cs
- MetadataFile.cs
- EventLogPermission.cs
- RangeBaseAutomationPeer.cs
- HMACRIPEMD160.cs
- ISAPIWorkerRequest.cs
- Quad.cs
- InstanceKeyView.cs
- TableLayoutColumnStyleCollection.cs
- Select.cs
- ObjectStateManager.cs
- Material.cs
- SpanIndex.cs
- DependencyPropertyKey.cs
- WebConvert.cs
- _BufferOffsetSize.cs
- MatrixTransform3D.cs
- PolyLineSegmentFigureLogic.cs
- PtsHelper.cs
- ConsumerConnectionPoint.cs
- NameTable.cs
- SqlBooleanizer.cs
- GeneralTransform3DCollection.cs
- PassportPrincipal.cs
- MutexSecurity.cs
- HitTestFilterBehavior.cs
- EntryIndex.cs
- ApplicationId.cs
- NameScope.cs
- EmulateRecognizeCompletedEventArgs.cs
- DBSqlParserTable.cs
- XmlILCommand.cs