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
- ProtocolViolationException.cs
- ReachSerializerAsync.cs
- ImageBrush.cs
- ILGenerator.cs
- PrimaryKeyTypeConverter.cs
- SqlColumnizer.cs
- AssemblyCache.cs
- XmlDataProvider.cs
- Deflater.cs
- Function.cs
- LineVisual.cs
- ResolvedKeyFrameEntry.cs
- SecurityManager.cs
- XsltArgumentList.cs
- ImagingCache.cs
- GeometryModel3D.cs
- OpCellTreeNode.cs
- FontDriver.cs
- TypeKeyValue.cs
- HierarchicalDataBoundControlAdapter.cs
- DependencyProperty.cs
- RoutedCommand.cs
- InteropExecutor.cs
- Border.cs
- XmlSortKey.cs
- WebControlToolBoxItem.cs
- ConfigurationSectionCollection.cs
- HtmlLink.cs
- XmlAttributeProperties.cs
- GeometryDrawing.cs
- XmlSchemaImport.cs
- EntityModelBuildProvider.cs
- SizeChangedInfo.cs
- ListItemsCollectionEditor.cs
- _ProxyChain.cs
- FilterEventArgs.cs
- UserValidatedEventArgs.cs
- TextEditorDragDrop.cs
- GetPageNumberCompletedEventArgs.cs
- SerializableAttribute.cs
- DeferredTextReference.cs
- Point3DAnimationBase.cs
- AutomationPatternInfo.cs
- SqlProviderServices.cs
- QilXmlWriter.cs
- WindowsGraphicsWrapper.cs
- JsonReader.cs
- MouseGesture.cs
- LocatorBase.cs
- AuthorizationRuleCollection.cs
- CorrelationService.cs
- Hyperlink.cs
- CodeDOMUtility.cs
- DbDataReader.cs
- ClientScriptManager.cs
- TableLayoutSettingsTypeConverter.cs
- SmiEventSink_Default.cs
- HttpFileCollection.cs
- sitestring.cs
- DynamicResourceExtensionConverter.cs
- CustomError.cs
- DataPagerFieldCommandEventArgs.cs
- ISAPIWorkerRequest.cs
- DebugView.cs
- ReachPageContentSerializer.cs
- Activation.cs
- PageParser.cs
- CatalogPartChrome.cs
- PermissionToken.cs
- CapabilitiesSection.cs
- DefaultClaimSet.cs
- Boolean.cs
- DataGridViewCellCancelEventArgs.cs
- StringUtil.cs
- RSAProtectedConfigurationProvider.cs
- StreamReader.cs
- RemoteWebConfigurationHost.cs
- WinFormsComponentEditor.cs
- ExtendedPropertyInfo.cs
- TableCell.cs
- NativeMethods.cs
- CombinedGeometry.cs
- SignatureGenerator.cs
- CombinedTcpChannel.cs
- ToolBar.cs
- AggregateNode.cs
- MemoryStream.cs
- QueryContinueDragEvent.cs
- EditCommandColumn.cs
- ReadOnlyDataSourceView.cs
- RequestBringIntoViewEventArgs.cs
- ExpressionBinding.cs
- TaskResultSetter.cs
- XmlCharacterData.cs
- DefaultValidator.cs
- Vector.cs
- SaveWorkflowAsyncResult.cs
- ToolStripDropDownClosedEventArgs.cs
- DynamicHyperLink.cs
- EntityDataSourceDesigner.cs