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
- SByte.cs
- ResolveDuplex11AsyncResult.cs
- IgnoreFileBuildProvider.cs
- RemotingException.cs
- Selection.cs
- EntityCodeGenerator.cs
- MarshalByValueComponent.cs
- SortedList.cs
- XPathScanner.cs
- CopyOnWriteList.cs
- GridViewSelectEventArgs.cs
- HtmlEmptyTagControlBuilder.cs
- ADRoleFactory.cs
- ComponentGlyph.cs
- WebBrowserContainer.cs
- TraceUtility.cs
- MonthCalendar.cs
- DeviceSpecificDesigner.cs
- PointLight.cs
- peernodestatemanager.cs
- ConfigDefinitionUpdates.cs
- RequestBringIntoViewEventArgs.cs
- IsolationInterop.cs
- SafeNativeMethods.cs
- ResourceDictionary.cs
- CompositionDesigner.cs
- DefaultShape.cs
- CellNormalizer.cs
- HostingEnvironmentException.cs
- SoapFormatter.cs
- StandardOleMarshalObject.cs
- DescendantBaseQuery.cs
- IgnoreDataMemberAttribute.cs
- CssClassPropertyAttribute.cs
- SemaphoreFullException.cs
- XmlSchemaDocumentation.cs
- cookiecontainer.cs
- CodeLinePragma.cs
- PartialArray.cs
- TabItem.cs
- SystemGatewayIPAddressInformation.cs
- RangeValuePatternIdentifiers.cs
- TextEditorSpelling.cs
- ResourceFallbackManager.cs
- GenericQueueSurrogate.cs
- ServicePointManagerElement.cs
- FixedSOMImage.cs
- ColorContext.cs
- xdrvalidator.cs
- ViewPort3D.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- RuntimeConfigLKG.cs
- TabControlDesigner.cs
- ListDictionary.cs
- StreamGeometry.cs
- Shape.cs
- BitConverter.cs
- Certificate.cs
- KnownTypesHelper.cs
- cookiecollection.cs
- RewritingSimplifier.cs
- WpfXamlLoader.cs
- Globals.cs
- ModelItemCollectionImpl.cs
- ListBindingConverter.cs
- ScriptIgnoreAttribute.cs
- SoapReflectionImporter.cs
- ListViewItem.cs
- LinearGradientBrush.cs
- EditorPartChrome.cs
- RepeatInfo.cs
- TranslateTransform3D.cs
- RequiredFieldValidator.cs
- ProcessHostServerConfig.cs
- SecurityTokenException.cs
- ExpressionEditorAttribute.cs
- IgnoreFlushAndCloseStream.cs
- OpenTypeMethods.cs
- FlowDocumentReaderAutomationPeer.cs
- KeyedCollection.cs
- CommandLineParser.cs
- WhitespaceReader.cs
- TargetInvocationException.cs
- PagerSettings.cs
- RecommendedAsConfigurableAttribute.cs
- RegexBoyerMoore.cs
- HebrewNumber.cs
- SurrogateSelector.cs
- MatrixCamera.cs
- XmlObjectSerializerReadContext.cs
- TextSegment.cs
- SendKeys.cs
- TriState.cs
- GeneralTransformGroup.cs
- ColumnPropertiesGroup.cs
- DataGridViewDataErrorEventArgs.cs
- SmiContext.cs
- MethodCallConverter.cs
- ConfigXmlWhitespace.cs
- HttpWebResponse.cs