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
- DispatchChannelSink.cs
- XmlQueryTypeFactory.cs
- ResXResourceSet.cs
- WebPartTransformerCollection.cs
- Utils.cs
- NetNamedPipeSecurity.cs
- TypedReference.cs
- ToolStripItemTextRenderEventArgs.cs
- ChildrenQuery.cs
- WorkflowMarkupSerializationManager.cs
- ByteStreamBufferedMessageData.cs
- IteratorDescriptor.cs
- ValueUnavailableException.cs
- ForeignKeyConstraint.cs
- BrowserDefinitionCollection.cs
- PassportPrincipal.cs
- EngineSiteSapi.cs
- InputEventArgs.cs
- RawStylusSystemGestureInputReport.cs
- XmlSchemaValidationException.cs
- ListBase.cs
- TypeDependencyAttribute.cs
- MatrixValueSerializer.cs
- MsmqIntegrationReceiveParameters.cs
- ThicknessAnimation.cs
- SoundPlayer.cs
- DataGridViewMethods.cs
- TailCallAnalyzer.cs
- ObjectDataSourceFilteringEventArgs.cs
- TimelineCollection.cs
- FormatSettings.cs
- BasicHttpMessageCredentialType.cs
- _StreamFramer.cs
- DataGridViewColumnStateChangedEventArgs.cs
- OleDbRowUpdatedEvent.cs
- XmlBinaryWriterSession.cs
- StringToken.cs
- MasterPageBuildProvider.cs
- Scanner.cs
- DataGridViewToolTip.cs
- XAMLParseException.cs
- PowerModeChangedEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- WebPartCollection.cs
- ADConnectionHelper.cs
- AttachedPropertyBrowsableAttribute.cs
- ParentControlDesigner.cs
- ZipIOLocalFileHeader.cs
- ResourcesGenerator.cs
- TableLayoutSettings.cs
- RIPEMD160Managed.cs
- DbConnectionFactory.cs
- AsyncPostBackTrigger.cs
- TypeDelegator.cs
- ColumnHeaderConverter.cs
- DateTimeOffsetConverter.cs
- StateElementCollection.cs
- Hex.cs
- COAUTHINFO.cs
- CodeTypeConstructor.cs
- CheckBoxRenderer.cs
- ValidationHelper.cs
- XmlSchemaObjectTable.cs
- XomlCompilerError.cs
- KnownColorTable.cs
- RangeValuePattern.cs
- DataControlField.cs
- SessionSwitchEventArgs.cs
- ContentTextAutomationPeer.cs
- PropertyItemInternal.cs
- TogglePatternIdentifiers.cs
- PeerObject.cs
- Base64Encoder.cs
- SafeCertificateStore.cs
- MdImport.cs
- DragDeltaEventArgs.cs
- FixedPageStructure.cs
- SeverityFilter.cs
- ExtractedStateEntry.cs
- PeerNearMe.cs
- EntityDescriptor.cs
- XmlResolver.cs
- SqlTransaction.cs
- ServiceAuthorizationBehavior.cs
- ChannelSettingsElement.cs
- SignatureDescription.cs
- Math.cs
- Inline.cs
- DynamicExpression.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- StaticFileHandler.cs
- MessageQueueException.cs
- GenericWebPart.cs
- BindingGraph.cs
- TokenBasedSetEnumerator.cs
- HttpConfigurationSystem.cs
- ErrorLog.cs
- DiffuseMaterial.cs
- TextComposition.cs
- CodeDelegateCreateExpression.cs