Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewItemSelectionChangedEvent.cs / 1305376 / ListViewItemSelectionChangedEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms
{
using System.ComponentModel;
///
///
/// The event class that is created when the selection state of a ListViewItem is changed.
///
public class ListViewItemSelectionChangedEventArgs : EventArgs
{
private ListViewItem item;
private int itemIndex;
private bool isSelected;
///
///
/// Constructs a ListViewItemSelectionChangedEventArgs object.
///
public ListViewItemSelectionChangedEventArgs(ListViewItem item, int itemIndex, bool isSelected)
{
this.item = item;
this.itemIndex = itemIndex;
this.isSelected = isSelected;
}
///
///
/// Return true if the item is selected
///
public bool IsSelected
{
get
{
return this.isSelected;
}
}
///
///
/// The list view item whose selection changed
///
public ListViewItem Item
{
get
{
return this.item;
}
}
///
///
/// The list view item's index
///
public int ItemIndex
{
get
{
return this.itemIndex;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms
{
using System.ComponentModel;
///
///
/// The event class that is created when the selection state of a ListViewItem is changed.
///
public class ListViewItemSelectionChangedEventArgs : EventArgs
{
private ListViewItem item;
private int itemIndex;
private bool isSelected;
///
///
/// Constructs a ListViewItemSelectionChangedEventArgs object.
///
public ListViewItemSelectionChangedEventArgs(ListViewItem item, int itemIndex, bool isSelected)
{
this.item = item;
this.itemIndex = itemIndex;
this.isSelected = isSelected;
}
///
///
/// Return true if the item is selected
///
public bool IsSelected
{
get
{
return this.isSelected;
}
}
///
///
/// The list view item whose selection changed
///
public ListViewItem Item
{
get
{
return this.item;
}
}
///
///
/// The list view item's index
///
public int ItemIndex
{
get
{
return this.itemIndex;
}
}
}
}
// 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
- TransportBindingElementImporter.cs
- DrawingContextDrawingContextWalker.cs
- COM2EnumConverter.cs
- DetailsViewAutoFormat.cs
- ImageMapEventArgs.cs
- TrackingServices.cs
- ObjectStateManager.cs
- HttpGetServerProtocol.cs
- UDPClient.cs
- EmissiveMaterial.cs
- FakeModelPropertyImpl.cs
- DbParameterHelper.cs
- HttpRequestBase.cs
- XmlWriterTraceListener.cs
- TargetInvocationException.cs
- PositiveTimeSpanValidator.cs
- PersonalizationProviderCollection.cs
- HttpResponseWrapper.cs
- ObjectSpanRewriter.cs
- LocationSectionRecord.cs
- SqlCacheDependency.cs
- ScrollBar.cs
- UnlockInstanceCommand.cs
- SqlDataRecord.cs
- SqlUserDefinedAggregateAttribute.cs
- SymLanguageVendor.cs
- MessageDesigner.cs
- LoginDesignerUtil.cs
- Evidence.cs
- ResourceExpressionBuilder.cs
- Symbol.cs
- DataContractSerializer.cs
- DesignerDataRelationship.cs
- XmlComment.cs
- _ListenerAsyncResult.cs
- COM2Enum.cs
- BezierSegment.cs
- ListViewInsertEventArgs.cs
- Opcode.cs
- ServiceNameElementCollection.cs
- MultiDataTrigger.cs
- _FtpControlStream.cs
- RoutedEventConverter.cs
- PresentationTraceSources.cs
- FunctionImportMapping.cs
- Automation.cs
- SoapUnknownHeader.cs
- UriTemplateCompoundPathSegment.cs
- TextInfo.cs
- SiteOfOriginContainer.cs
- ActivityPreviewDesigner.cs
- FrameworkElement.cs
- WindowsUpDown.cs
- DataFormat.cs
- HtmlElementCollection.cs
- BooleanStorage.cs
- _HTTPDateParse.cs
- CustomAttributeFormatException.cs
- ConfigurationPropertyCollection.cs
- MarginsConverter.cs
- DocumentPage.cs
- TriggerCollection.cs
- XmlSchemaSet.cs
- ProcessInfo.cs
- XmlElement.cs
- Effect.cs
- SchemaManager.cs
- TextServicesContext.cs
- SqlClientWrapperSmiStreamChars.cs
- Timer.cs
- LinkArea.cs
- _LocalDataStoreMgr.cs
- GacUtil.cs
- UdpDiscoveryEndpointProvider.cs
- MetadataWorkspace.cs
- CornerRadius.cs
- httpstaticobjectscollection.cs
- ObjectDataSourceView.cs
- DigitShape.cs
- XhtmlConformanceSection.cs
- TdsValueSetter.cs
- StateChangeEvent.cs
- XPathDocumentIterator.cs
- InfoCardRSACryptoProvider.cs
- MetadataArtifactLoader.cs
- TextServicesDisplayAttribute.cs
- UInt32Storage.cs
- SHA1.cs
- XLinq.cs
- IERequestCache.cs
- PrimitiveSchema.cs
- UrlPath.cs
- HWStack.cs
- MobileCategoryAttribute.cs
- CodeExpressionStatement.cs
- TypeSource.cs
- keycontainerpermission.cs
- Grant.cs
- ParsedRoute.cs
- ConfigurationLocation.cs