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
- XPathDocumentNavigator.cs
- DesignerDataRelationship.cs
- IpcPort.cs
- DPCustomTypeDescriptor.cs
- DbConnectionPool.cs
- WebDisplayNameAttribute.cs
- PlatformCulture.cs
- InputLanguageCollection.cs
- ExtenderProviderService.cs
- SiteMapNodeItemEventArgs.cs
- EmptyEnumerable.cs
- RequestContext.cs
- Span.cs
- WpfGeneratedKnownProperties.cs
- SqlServices.cs
- XmlCompatibilityReader.cs
- HintTextMaxWidthConverter.cs
- GuidelineSet.cs
- PeerInvitationResponse.cs
- AttachmentCollection.cs
- CryptoHelper.cs
- PolicyDesigner.cs
- AmbientProperties.cs
- GeneralTransform2DTo3DTo2D.cs
- CustomCredentialPolicy.cs
- ButtonBase.cs
- MessageAction.cs
- WebPartCatalogAddVerb.cs
- ByteRangeDownloader.cs
- MimeReflector.cs
- WebPartTransformer.cs
- ZipPackagePart.cs
- Transform3D.cs
- CallId.cs
- BitmapMetadataEnumerator.cs
- GridViewCellAutomationPeer.cs
- HttpChannelHelpers.cs
- BitmapFrameDecode.cs
- EventNotify.cs
- SecurityDescriptor.cs
- NameTable.cs
- CustomWebEventKey.cs
- JavaScriptSerializer.cs
- RevocationPoint.cs
- DataColumnCollection.cs
- NavigateEvent.cs
- ZipIOModeEnforcingStream.cs
- ExtenderProviderService.cs
- ErrorEventArgs.cs
- Matrix.cs
- EntityException.cs
- RadioButtonPopupAdapter.cs
- TransportReplyChannelAcceptor.cs
- ProviderBase.cs
- CmsInterop.cs
- WorkItem.cs
- StylesEditorDialog.cs
- DbSource.cs
- ResourceReader.cs
- BamlStream.cs
- SingleAnimationBase.cs
- XmlIterators.cs
- AssemblyResourceLoader.cs
- _ListenerResponseStream.cs
- EditorZoneBase.cs
- ZipIOLocalFileBlock.cs
- PermissionSetEnumerator.cs
- ReferencedAssemblyResolver.cs
- MailWriter.cs
- TranslateTransform.cs
- PreProcessor.cs
- MULTI_QI.cs
- BinaryUtilClasses.cs
- Control.cs
- CheckBoxStandardAdapter.cs
- PerformanceCounterLib.cs
- DbParameterHelper.cs
- SQLGuid.cs
- InputBinder.cs
- EndPoint.cs
- ObjectSpanRewriter.cs
- WebOperationContext.cs
- RtfFormatStack.cs
- PointLightBase.cs
- FileInfo.cs
- Schema.cs
- JoinCqlBlock.cs
- ListSortDescription.cs
- PropertyCollection.cs
- DictionaryEditChange.cs
- PathTooLongException.cs
- SequentialWorkflowHeaderFooter.cs
- PointLightBase.cs
- OracleNumber.cs
- DataTemplate.cs
- DesignOnlyAttribute.cs
- SerializationHelper.cs
- ModuleBuilderData.cs
- DecimalKeyFrameCollection.cs
- AssemblyBuilder.cs