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
- SqlDataSource.cs
- DataError.cs
- OracleConnection.cs
- SmtpReplyReader.cs
- GroupLabel.cs
- UriScheme.cs
- OdbcEnvironmentHandle.cs
- HierarchicalDataBoundControl.cs
- FacetEnabledSchemaElement.cs
- EncoderReplacementFallback.cs
- SvcMapFileSerializer.cs
- MailWriter.cs
- RowCache.cs
- assertwrapper.cs
- Property.cs
- FixedDocumentPaginator.cs
- RootDesignerSerializerAttribute.cs
- OdbcDataAdapter.cs
- EncryptedKeyIdentifierClause.cs
- WhitespaceRuleReader.cs
- X509CertificateRecipientClientCredential.cs
- HScrollBar.cs
- SchemaExporter.cs
- KeyFrames.cs
- TemplateControlParser.cs
- FormParameter.cs
- TraceSwitch.cs
- AdornerHitTestResult.cs
- DataFormat.cs
- CurrencyManager.cs
- TriggerCollection.cs
- Hash.cs
- DataGridViewAdvancedBorderStyle.cs
- InvokeProviderWrapper.cs
- BufferAllocator.cs
- SystemIcmpV6Statistics.cs
- DeferredReference.cs
- BasePattern.cs
- HttpProfileGroupBase.cs
- LabelAutomationPeer.cs
- DispatcherExceptionFilterEventArgs.cs
- Thickness.cs
- FormattedText.cs
- TextDecorations.cs
- BindingContext.cs
- HandlerFactoryCache.cs
- PipelineDeploymentState.cs
- FilteredAttributeCollection.cs
- GridViewCancelEditEventArgs.cs
- TypeUnloadedException.cs
- FontFamilyIdentifier.cs
- Debug.cs
- ObjectContext.cs
- FileSecurity.cs
- AnimationTimeline.cs
- HostingEnvironment.cs
- TriState.cs
- SqlUDTStorage.cs
- ExpressionReplacer.cs
- KeyGesture.cs
- SqlUtil.cs
- MediaEntryAttribute.cs
- IndexingContentUnit.cs
- InplaceBitmapMetadataWriter.cs
- SqlReferenceCollection.cs
- PcmConverter.cs
- CompositionTarget.cs
- CommonServiceBehaviorElement.cs
- LinqDataSourceHelper.cs
- GridViewRow.cs
- ValidatorCollection.cs
- LookupNode.cs
- RoutedPropertyChangedEventArgs.cs
- SelectionWordBreaker.cs
- UserInitiatedNavigationPermission.cs
- TableItemProviderWrapper.cs
- ColorMatrix.cs
- WeakReadOnlyCollection.cs
- ColorConvertedBitmapExtension.cs
- RequestFactory.cs
- ImageFormat.cs
- TemplateColumn.cs
- TemplateBindingExpression.cs
- DoubleStorage.cs
- WebResponse.cs
- ItemAutomationPeer.cs
- ToolStripDropDownClosedEventArgs.cs
- UserControlBuildProvider.cs
- Point3DAnimationBase.cs
- ComNativeDescriptor.cs
- IApplicationTrustManager.cs
- RemotingSurrogateSelector.cs
- ConsoleCancelEventArgs.cs
- RuntimeConfigLKG.cs
- NumberFunctions.cs
- DataGridColumnHeaderAutomationPeer.cs
- Baml6Assembly.cs
- IISMapPath.cs
- Decoder.cs
- MethodCallTranslator.cs