Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- EncryptedPackage.cs
- TemplateControl.cs
- DataGridViewAccessibleObject.cs
- DateTime.cs
- CmsInterop.cs
- MultiSelectRootGridEntry.cs
- Rotation3DAnimationBase.cs
- ControlBindingsConverter.cs
- ClassHandlersStore.cs
- FormClosingEvent.cs
- SqlParameter.cs
- X509WindowsSecurityToken.cs
- SqlDataSourceCache.cs
- BidOverLoads.cs
- ConfigurationSectionGroupCollection.cs
- LineGeometry.cs
- HttpWebResponse.cs
- SapiInterop.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- InvalidTimeZoneException.cs
- BatchWriter.cs
- AssemblyAttributesGoHere.cs
- DaylightTime.cs
- ParenthesizePropertyNameAttribute.cs
- XmlSchemaChoice.cs
- WindowsHyperlink.cs
- ToolStripDropDown.cs
- QEncodedStream.cs
- DataGridRowsPresenter.cs
- TemplateColumn.cs
- DbLambda.cs
- OrderByBuilder.cs
- DataContractSerializerOperationFormatter.cs
- OrderedDictionary.cs
- DESCryptoServiceProvider.cs
- CultureTableRecord.cs
- RadioButtonBaseAdapter.cs
- HtmlShim.cs
- BuildProvider.cs
- _NetworkingPerfCounters.cs
- ProgressBarRenderer.cs
- XmlNodeList.cs
- TextDecoration.cs
- XmlQuerySequence.cs
- WebFaultException.cs
- ClaimSet.cs
- MachineSettingsSection.cs
- StatusBarPanelClickEvent.cs
- BufferedGraphicsContext.cs
- DataGridViewMethods.cs
- StorageSetMapping.cs
- DllNotFoundException.cs
- VBIdentifierNameEditor.cs
- TableHeaderCell.cs
- StylusDevice.cs
- OdbcStatementHandle.cs
- VisualCollection.cs
- COAUTHIDENTITY.cs
- RadioButtonPopupAdapter.cs
- HMACSHA1.cs
- CodeBinaryOperatorExpression.cs
- SerializationException.cs
- MenuBindingsEditor.cs
- ContainerSelectorGlyph.cs
- MailDefinition.cs
- CaseExpr.cs
- XslCompiledTransform.cs
- SharedStatics.cs
- DeviceSpecificChoice.cs
- LinkedList.cs
- BCLDebug.cs
- RoleGroupCollection.cs
- ReplyChannelAcceptor.cs
- TreeNode.cs
- sqlcontext.cs
- EdmType.cs
- CodeTypeMember.cs
- CodeArrayIndexerExpression.cs
- DocumentSequenceHighlightLayer.cs
- SafeFileMapViewHandle.cs
- NullableDoubleAverageAggregationOperator.cs
- AppDomainCompilerProxy.cs
- CheckBoxBaseAdapter.cs
- TypedReference.cs
- ImageMap.cs
- FontUnitConverter.cs
- IxmlLineInfo.cs
- FilteredAttributeCollection.cs
- XmlIncludeAttribute.cs
- XmlReaderSettings.cs
- ObjectQuery_EntitySqlExtensions.cs
- QueryOutputWriter.cs
- TreeViewHitTestInfo.cs
- TreeViewItemAutomationPeer.cs
- WindowsGraphicsCacheManager.cs
- Visual3DCollection.cs
- MailBnfHelper.cs
- ConnectionProviderAttribute.cs
- AutomationTextAttribute.cs
- CodeNamespaceImportCollection.cs