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
- PreloadedPackages.cs
- SoapElementAttribute.cs
- SqlTypesSchemaImporter.cs
- TransformDescriptor.cs
- AndCondition.cs
- TreeNodeClickEventArgs.cs
- CssStyleCollection.cs
- ButtonColumn.cs
- ActivityInfo.cs
- TypeBinaryExpression.cs
- XPathDocumentBuilder.cs
- BrowserTree.cs
- FilePrompt.cs
- VariableAction.cs
- MenuItem.cs
- XmlIlTypeHelper.cs
- InsufficientMemoryException.cs
- RestHandler.cs
- AutoGeneratedFieldProperties.cs
- TextSpan.cs
- SqlHelper.cs
- DataKeyPropertyAttribute.cs
- X509ChainPolicy.cs
- SchemaNames.cs
- KoreanCalendar.cs
- SQLMembershipProvider.cs
- QueryResult.cs
- MonthCalendarDesigner.cs
- UnionCodeGroup.cs
- TextElementEditingBehaviorAttribute.cs
- IPipelineRuntime.cs
- ClientCultureInfo.cs
- ComboBox.cs
- MatrixAnimationBase.cs
- UnmanagedMemoryStream.cs
- NullReferenceException.cs
- DataControlLinkButton.cs
- VirtualizedContainerService.cs
- DataGridTextBox.cs
- ReadOnlyTernaryTree.cs
- SoapInteropTypes.cs
- AppDomainShutdownMonitor.cs
- SQLInt64Storage.cs
- SqlAliaser.cs
- Expression.cs
- WSFederationHttpSecurityMode.cs
- Matrix.cs
- Rights.cs
- AppDomainInstanceProvider.cs
- DictionaryMarkupSerializer.cs
- CommonObjectSecurity.cs
- StringValidator.cs
- MetadataSource.cs
- Queue.cs
- RemoveStoryboard.cs
- LOSFormatter.cs
- OptimizedTemplateContentHelper.cs
- ZipPackagePart.cs
- SystemWebExtensionsSectionGroup.cs
- AsymmetricAlgorithm.cs
- MD5.cs
- LocatorManager.cs
- Exception.cs
- Attributes.cs
- FieldMetadata.cs
- ChangePassword.cs
- RetrieveVirtualItemEventArgs.cs
- PolicyStatement.cs
- ReverseComparer.cs
- KeyPressEvent.cs
- TrustLevel.cs
- HuffCodec.cs
- StrokeCollection.cs
- ReaderWriterLock.cs
- SettingsPropertyCollection.cs
- GenericPrincipal.cs
- FrameworkElementFactoryMarkupObject.cs
- ScriptingSectionGroup.cs
- ReadOnlyDictionary.cs
- TableLayoutSettingsTypeConverter.cs
- LinqDataSourceSelectEventArgs.cs
- SqlProviderServices.cs
- RowsCopiedEventArgs.cs
- OracleParameter.cs
- MenuCommands.cs
- ModelItemDictionary.cs
- ViewStateModeByIdAttribute.cs
- TextSelectionProcessor.cs
- CommandDevice.cs
- InfoCardTrace.cs
- ActionNotSupportedException.cs
- ObjectAnimationBase.cs
- GenerateTemporaryTargetAssembly.cs
- ControlDesigner.cs
- WebSysDescriptionAttribute.cs
- WSFederationHttpBinding.cs
- SqlProviderServices.cs
- MarkerProperties.cs
- BamlLocalizableResource.cs
- PromptBuilder.cs