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
- OleDbWrapper.cs
- panel.cs
- ImageMap.cs
- Control.cs
- Label.cs
- PersonalizablePropertyEntry.cs
- ServiceAuthorizationElement.cs
- SqlRecordBuffer.cs
- SoapRpcMethodAttribute.cs
- DockAndAnchorLayout.cs
- ServiceDebugElement.cs
- PageClientProxyGenerator.cs
- HighContrastHelper.cs
- PartitionResolver.cs
- XmlSchemaInfo.cs
- TextSerializer.cs
- CompositeCollectionView.cs
- RepeaterItemEventArgs.cs
- SrgsDocumentParser.cs
- XmlUtf8RawTextWriter.cs
- Base64WriteStateInfo.cs
- CqlParser.cs
- VisualStyleRenderer.cs
- TableRowGroup.cs
- wmiprovider.cs
- WebBrowser.cs
- TextDecorations.cs
- ToolStripTextBox.cs
- PermissionAttributes.cs
- entityreference_tresulttype.cs
- HtmlElementEventArgs.cs
- TransformValueSerializer.cs
- WebPartMenu.cs
- XmlDownloadManager.cs
- SurrogateEncoder.cs
- RealProxy.cs
- CodeSnippetExpression.cs
- ValidationSummary.cs
- TimeSpanHelper.cs
- PkcsMisc.cs
- SerializationException.cs
- ListDictionaryInternal.cs
- WebBrowserContainer.cs
- FullTextBreakpoint.cs
- SHA384CryptoServiceProvider.cs
- LogExtent.cs
- ByteStreamMessageUtility.cs
- ScaleTransform3D.cs
- _HelperAsyncResults.cs
- DataBoundLiteralControl.cs
- ProgressChangedEventArgs.cs
- EncryptedData.cs
- EntityDataSourceEntityTypeFilterItem.cs
- TextElementEditingBehaviorAttribute.cs
- LiteralTextContainerControlBuilder.cs
- XmlSchemaDocumentation.cs
- CodeNamespaceCollection.cs
- FormView.cs
- MdImport.cs
- TargetFrameworkAttribute.cs
- SafeHandle.cs
- XmlDictionaryReaderQuotas.cs
- ScriptDescriptor.cs
- WorkflowRuntimeBehavior.cs
- PictureBox.cs
- UriParserTemplates.cs
- SafeRegistryHandle.cs
- CellRelation.cs
- DataTableClearEvent.cs
- TextTreeDeleteContentUndoUnit.cs
- Annotation.cs
- PropertyGroupDescription.cs
- RenamedEventArgs.cs
- BindingExpressionUncommonField.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- HtmlForm.cs
- StrokeRenderer.cs
- BaseComponentEditor.cs
- DnsPermission.cs
- ClientProxyGenerator.cs
- XDRSchema.cs
- JsonMessageEncoderFactory.cs
- TextEditorCharacters.cs
- ResourceReferenceKeyNotFoundException.cs
- ListViewDataItem.cs
- UIElement3D.cs
- MdiWindowListItemConverter.cs
- ObjectStateFormatter.cs
- XsltArgumentList.cs
- SecUtil.cs
- PenContexts.cs
- LoadedEvent.cs
- FontStyles.cs
- DesignBindingEditor.cs
- EntityTypeBase.cs
- DesignerSerializationOptionsAttribute.cs
- CachingHintValidation.cs
- ToolStripProgressBar.cs
- DEREncoding.cs
- ParsedRoute.cs