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
- AuthenticationModulesSection.cs
- PolicyStatement.cs
- NameScopePropertyAttribute.cs
- VirtualPathUtility.cs
- CellParaClient.cs
- ReadContentAsBinaryHelper.cs
- IBuiltInEvidence.cs
- DataGridViewColumnEventArgs.cs
- ReferenceConverter.cs
- Pair.cs
- StructuralCache.cs
- StringSource.cs
- SignatureDescription.cs
- ProfileInfo.cs
- ClosureBinding.cs
- _ContextAwareResult.cs
- WebPartManagerInternals.cs
- glyphs.cs
- ResXBuildProvider.cs
- SelectorItemAutomationPeer.cs
- HashMembershipCondition.cs
- GraphicsState.cs
- exports.cs
- ToolStripDropTargetManager.cs
- PerfCounters.cs
- ListBindableAttribute.cs
- HierarchicalDataBoundControl.cs
- CancellableEnumerable.cs
- TranslateTransform.cs
- DeferredElementTreeState.cs
- ToolStripItemRenderEventArgs.cs
- RefreshEventArgs.cs
- _AutoWebProxyScriptEngine.cs
- PeerNameRecord.cs
- CanonicalizationDriver.cs
- Transform3D.cs
- HtmlEmptyTagControlBuilder.cs
- HWStack.cs
- SwitchElementsCollection.cs
- IOException.cs
- OracleMonthSpan.cs
- WebControlParameterProxy.cs
- HtmlInputCheckBox.cs
- XPathDocumentBuilder.cs
- SHA512CryptoServiceProvider.cs
- BuildProvider.cs
- TemplateGroupCollection.cs
- UriTemplateQueryValue.cs
- CheckBoxRenderer.cs
- Attributes.cs
- XmlSchemaImporter.cs
- FontStyle.cs
- UnsafeNativeMethods.cs
- BroadcastEventHelper.cs
- CommonDialog.cs
- CqlBlock.cs
- ContentElement.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TextEditor.cs
- XslTransform.cs
- StyleConverter.cs
- DateRangeEvent.cs
- CustomSignedXml.cs
- ObjectMemberMapping.cs
- RuntimeConfigurationRecord.cs
- WebPartDisplayMode.cs
- DSACryptoServiceProvider.cs
- ConstantProjectedSlot.cs
- CodeSnippetCompileUnit.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- RankException.cs
- xmlsaver.cs
- MdiWindowListItemConverter.cs
- NeedSkipTokenVisitor.cs
- SqlCommandBuilder.cs
- SqlParameter.cs
- OrderedHashRepartitionStream.cs
- DataGridViewDataConnection.cs
- MsmqAppDomainProtocolHandler.cs
- unitconverter.cs
- _UncName.cs
- AccessDataSource.cs
- PageAsyncTaskManager.cs
- CodeDomLocalizationProvider.cs
- GridSplitterAutomationPeer.cs
- Int32KeyFrameCollection.cs
- MembershipUser.cs
- DataGridBoolColumn.cs
- NodeInfo.cs
- SplitterPanel.cs
- DirectionalAction.cs
- CmsInterop.cs
- FragmentNavigationEventArgs.cs
- Package.cs
- GridItemProviderWrapper.cs
- InputScope.cs
- SID.cs
- ClientTarget.cs
- DictionaryKeyPropertyAttribute.cs
- RuntimeArgumentHandle.cs