Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / SelectedGridItemChangedEvent.cs / 1 / SelectedGridItemChangedEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
///
///
/// The event class that is created when the selected GridItem in the PropertyGrid is changed by the user.
///
public class SelectedGridItemChangedEventArgs : EventArgs {
private GridItem oldSelection;
private GridItem newSelection;
///
///
/// Constructs a SelectedGridItemChangedEventArgs object.
///
public SelectedGridItemChangedEventArgs(GridItem oldSel, GridItem newSel) {
this.oldSelection = oldSel;
this.newSelection = newSel;
}
///
///
/// The newly selected GridItem object
///
public GridItem NewSelection {
get {
return this.newSelection;
}
}
///
///
/// The previously selected GridItem object. This can be null.
///
public GridItem OldSelection {
get {
return this.oldSelection;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
///
///
/// The event class that is created when the selected GridItem in the PropertyGrid is changed by the user.
///
public class SelectedGridItemChangedEventArgs : EventArgs {
private GridItem oldSelection;
private GridItem newSelection;
///
///
/// Constructs a SelectedGridItemChangedEventArgs object.
///
public SelectedGridItemChangedEventArgs(GridItem oldSel, GridItem newSel) {
this.oldSelection = oldSel;
this.newSelection = newSel;
}
///
///
/// The newly selected GridItem object
///
public GridItem NewSelection {
get {
return this.newSelection;
}
}
///
///
/// The previously selected GridItem object. This can be null.
///
public GridItem OldSelection {
get {
return this.oldSelection;
}
}
}
}
// 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
- CollectionViewGroupRoot.cs
- Trace.cs
- PathFigureCollection.cs
- RawUIStateInputReport.cs
- TreeSet.cs
- ITreeGenerator.cs
- InputReport.cs
- UserNameSecurityTokenAuthenticator.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ToolStripRendererSwitcher.cs
- SafeFindHandle.cs
- RenderDataDrawingContext.cs
- CollectionViewGroupRoot.cs
- Wrapper.cs
- OdbcDataReader.cs
- CompositionTarget.cs
- DateTimeUtil.cs
- FolderBrowserDialog.cs
- FigureParaClient.cs
- IFormattable.cs
- HyperLinkStyle.cs
- Deserializer.cs
- COM2IPerPropertyBrowsingHandler.cs
- ResourcePool.cs
- CngProvider.cs
- DocumentAutomationPeer.cs
- XamlReaderHelper.cs
- ExitEventArgs.cs
- SchemaObjectWriter.cs
- ErrorInfoXmlDocument.cs
- CellIdBoolean.cs
- EncoderParameter.cs
- TrustManagerPromptUI.cs
- NamespaceInfo.cs
- FacetDescription.cs
- Exception.cs
- ConnectorDragDropGlyph.cs
- DataGridLengthConverter.cs
- TrustSection.cs
- Literal.cs
- EntityConnectionStringBuilderItem.cs
- StyleXamlTreeBuilder.cs
- GridViewSortEventArgs.cs
- XmlObjectSerializerReadContextComplex.cs
- HijriCalendar.cs
- WindowsFont.cs
- _DigestClient.cs
- FileRegion.cs
- XslTransform.cs
- oledbmetadatacollectionnames.cs
- TextSearch.cs
- ThreadExceptionDialog.cs
- AssemblyBuilderData.cs
- XPathNodeInfoAtom.cs
- ReadOnlyDataSource.cs
- RawStylusActions.cs
- SmiEventSink_DeferedProcessing.cs
- IteratorDescriptor.cs
- SingleStorage.cs
- ReadOnlyDataSource.cs
- Int16Animation.cs
- PasswordBox.cs
- MembershipSection.cs
- TypeBuilderInstantiation.cs
- MetadataArtifactLoaderCompositeFile.cs
- ExpressionPrefixAttribute.cs
- DebuggerAttributes.cs
- DocumentViewer.cs
- QueryCacheKey.cs
- CompositionTarget.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SqlDataAdapter.cs
- ProxyAttribute.cs
- CustomCategoryAttribute.cs
- KeyEventArgs.cs
- Brush.cs
- ListMarkerSourceInfo.cs
- SqlUtil.cs
- QueryConverter.cs
- RtfFormatStack.cs
- DataGridViewTextBoxCell.cs
- ChangesetResponse.cs
- ThreadStateException.cs
- SessionStateItemCollection.cs
- OdbcStatementHandle.cs
- BulletedListDesigner.cs
- MetabaseReader.cs
- Point3DValueSerializer.cs
- CompileLiteralTextParser.cs
- XmlSchemaExporter.cs
- IRCollection.cs
- EdmError.cs
- Expressions.cs
- DBPropSet.cs
- MediaElementAutomationPeer.cs
- FindCriteria11.cs
- brushes.cs
- StatusBarDrawItemEvent.cs
- TextRangeSerialization.cs
- CodeIndexerExpression.cs