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
- RoutedUICommand.cs
- BitmapEditor.cs
- Int16Animation.cs
- PageAsyncTask.cs
- PerformanceCounterPermissionEntry.cs
- RelationshipWrapper.cs
- DataViewManager.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- HighlightComponent.cs
- CheckedPointers.cs
- MtomMessageEncodingElement.cs
- COAUTHIDENTITY.cs
- ErrorRuntimeConfig.cs
- ParseNumbers.cs
- CultureInfo.cs
- DataAdapter.cs
- UrlPropertyAttribute.cs
- WebUtil.cs
- FormViewUpdateEventArgs.cs
- ExpressionContext.cs
- SecurityRuntime.cs
- XslAstAnalyzer.cs
- NativeMethods.cs
- ChannelServices.cs
- XmlCountingReader.cs
- StorageAssociationSetMapping.cs
- precedingquery.cs
- TextPatternIdentifiers.cs
- MonthCalendar.cs
- ServiceMemoryGates.cs
- XmlSchemaIdentityConstraint.cs
- Application.cs
- DecimalStorage.cs
- PropertyFilterAttribute.cs
- ProcessProtocolHandler.cs
- SimpleTypesSurrogate.cs
- PowerModeChangedEventArgs.cs
- FacetValues.cs
- ManagementOptions.cs
- ToolStripCodeDomSerializer.cs
- HtmlInputSubmit.cs
- RelativeSource.cs
- Property.cs
- EndPoint.cs
- TableAutomationPeer.cs
- DataGridViewCellParsingEventArgs.cs
- ImageBrush.cs
- Component.cs
- ToolStripLocationCancelEventArgs.cs
- OleDbParameterCollection.cs
- ActivityMarkupSerializationProvider.cs
- SmtpAuthenticationManager.cs
- WebPartConnection.cs
- ManagedIStream.cs
- DataObjectPastingEventArgs.cs
- Socket.cs
- MetadataPropertyAttribute.cs
- ErrorEventArgs.cs
- KeySpline.cs
- OleDbException.cs
- HtmlLiteralTextAdapter.cs
- CacheOutputQuery.cs
- TypographyProperties.cs
- HwndSource.cs
- BitmapInitialize.cs
- BitmapEffectvisualstate.cs
- ObjectCache.cs
- AppearanceEditorPart.cs
- FixedStringLookup.cs
- NodeInfo.cs
- XpsThumbnail.cs
- ListViewCommandEventArgs.cs
- WindowsContainer.cs
- DataListAutoFormat.cs
- TypeBinaryExpression.cs
- TransformerTypeCollection.cs
- SqlMultiplexer.cs
- NullableDoubleAverageAggregationOperator.cs
- RemotingAttributes.cs
- DocumentReference.cs
- SelectionRangeConverter.cs
- Trace.cs
- QueryMatcher.cs
- BitmapImage.cs
- OracleConnectionString.cs
- TypeElement.cs
- UniqueConstraint.cs
- SamlSubjectStatement.cs
- CfgParser.cs
- BamlReader.cs
- NameNode.cs
- PointCollectionConverter.cs
- InheritanceContextHelper.cs
- UniqueID.cs
- SoapAttributeAttribute.cs
- DataGridItemCollection.cs
- SerializationStore.cs
- Command.cs
- SpinLock.cs
- GeneratedCodeAttribute.cs