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
- ProtectedProviderSettings.cs
- SemanticResultKey.cs
- UrlMappingsSection.cs
- CodeExpressionStatement.cs
- InstanceView.cs
- MimeMultiPart.cs
- TailPinnedEventArgs.cs
- ProbeMatchesMessageCD1.cs
- DesignerAutoFormat.cs
- WebPartEditorApplyVerb.cs
- ResizeGrip.cs
- HashAlgorithm.cs
- TokenBasedSetEnumerator.cs
- FixUpCollection.cs
- ConversionContext.cs
- FormViewPagerRow.cs
- DataFormats.cs
- TypedTableHandler.cs
- EntryPointNotFoundException.cs
- AppModelKnownContentFactory.cs
- MethodAccessException.cs
- RayMeshGeometry3DHitTestResult.cs
- XmlExtensionFunction.cs
- Relationship.cs
- HtmlControlPersistable.cs
- CodeTypeParameterCollection.cs
- TextBlock.cs
- RadioButtonFlatAdapter.cs
- documentsequencetextpointer.cs
- RequestChannelBinder.cs
- WebServiceData.cs
- WSHttpBindingElement.cs
- PointKeyFrameCollection.cs
- _ListenerRequestStream.cs
- GridViewRowPresenter.cs
- WebPartsPersonalization.cs
- compensatingcollection.cs
- TextContainerChangedEventArgs.cs
- LayoutUtils.cs
- IncrementalCompileAnalyzer.cs
- DesignerSerializationOptionsAttribute.cs
- DataReaderContainer.cs
- DynamicPhysicalDiscoSearcher.cs
- AudioBase.cs
- CacheDependency.cs
- DataGridViewButtonCell.cs
- DropDownHolder.cs
- OracleColumn.cs
- HostedImpersonationContext.cs
- ObjectItemAssemblyLoader.cs
- EntityContainerRelationshipSet.cs
- Resources.Designer.cs
- ColumnResizeAdorner.cs
- SafeProcessHandle.cs
- TypeLoader.cs
- _SafeNetHandles.cs
- EventEntry.cs
- IFlowDocumentViewer.cs
- TaskFormBase.cs
- HttpCachePolicy.cs
- BitmapEffectDrawing.cs
- PresentationUIStyleResources.cs
- RayMeshGeometry3DHitTestResult.cs
- AmbiguousMatchException.cs
- NameSpaceEvent.cs
- clipboard.cs
- Highlights.cs
- MouseActionConverter.cs
- MasterPageParser.cs
- XPathSingletonIterator.cs
- unsafeIndexingFilterStream.cs
- XmlEventCache.cs
- WmlListAdapter.cs
- AssertHelper.cs
- UnsafeNativeMethodsCLR.cs
- GlobalEventManager.cs
- SecurityPermission.cs
- ObjectResult.cs
- DataKey.cs
- Int32Rect.cs
- RequestQueryParser.cs
- StylusPointCollection.cs
- DbConnectionInternal.cs
- FontCollection.cs
- SiteMapSection.cs
- CFGGrammar.cs
- MachineKeySection.cs
- SystemNetHelpers.cs
- SerializableAttribute.cs
- HandledMouseEvent.cs
- DiscoveryVersionConverter.cs
- ContextBase.cs
- UInt64Storage.cs
- XmlSignificantWhitespace.cs
- WebProxyScriptElement.cs
- VisualBrush.cs
- AnimationException.cs
- Journaling.cs
- BasicHttpBindingElement.cs
- TrackingMemoryStream.cs