Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewItemSelectionChangedEvent.cs / 1 / 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
- PluralizationService.cs
- ControlBuilderAttribute.cs
- InstanceBehavior.cs
- DataGridViewRowStateChangedEventArgs.cs
- CqlParser.cs
- HtmlGenericControl.cs
- HybridDictionary.cs
- BevelBitmapEffect.cs
- TextSpan.cs
- NamedElement.cs
- HttpException.cs
- OpCellTreeNode.cs
- DataGridViewCheckBoxColumn.cs
- _AutoWebProxyScriptEngine.cs
- ActivityDesignerResources.cs
- SQLInt64Storage.cs
- FrugalMap.cs
- DataGridTextBox.cs
- DetailsViewPagerRow.cs
- FunctionImportElement.cs
- AnimationException.cs
- WorkflowApplicationAbortedEventArgs.cs
- C14NUtil.cs
- CodeDirectoryCompiler.cs
- DesignerSelectionListAdapter.cs
- AdPostCacheSubstitution.cs
- WindowsFormsHost.cs
- Vector3DCollectionConverter.cs
- DeclarativeCatalogPart.cs
- BaseTemplateBuildProvider.cs
- JoinSymbol.cs
- HttpHostedTransportConfiguration.cs
- DataListItemCollection.cs
- Empty.cs
- ByteFacetDescriptionElement.cs
- StylusPoint.cs
- InlinedAggregationOperatorEnumerator.cs
- JoinCqlBlock.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CookielessHelper.cs
- StackSpiller.Generated.cs
- XomlSerializationHelpers.cs
- UTF8Encoding.cs
- AlphabeticalEnumConverter.cs
- BinaryMethodMessage.cs
- TextLineResult.cs
- WebBrowserPermission.cs
- AuthenticatedStream.cs
- AssemblyName.cs
- CodeAccessSecurityEngine.cs
- ZipFileInfo.cs
- _SSPISessionCache.cs
- PingOptions.cs
- HealthMonitoringSection.cs
- COAUTHIDENTITY.cs
- ProfilePropertyMetadata.cs
- ThumbAutomationPeer.cs
- InstanceOwner.cs
- VisualStateManager.cs
- InitializationEventAttribute.cs
- DeadCharTextComposition.cs
- AttachmentService.cs
- Axis.cs
- RoleGroupCollection.cs
- GenericWebPart.cs
- DataBindingList.cs
- CompilerCollection.cs
- DeclaredTypeElement.cs
- ObjectToken.cs
- CodeDOMUtility.cs
- SamlAuthorizationDecisionClaimResource.cs
- PKCS1MaskGenerationMethod.cs
- ObjectDataSourceChooseTypePanel.cs
- DataGridViewToolTip.cs
- CodeBlockBuilder.cs
- XmlSchemaInfo.cs
- HttpModulesSection.cs
- listitem.cs
- SafeCertificateStore.cs
- XmlReaderSettings.cs
- RSACryptoServiceProvider.cs
- Content.cs
- Cursor.cs
- Publisher.cs
- TypeExtension.cs
- SelectionRange.cs
- ITreeGenerator.cs
- GridLength.cs
- XmlDeclaration.cs
- WinEventTracker.cs
- PixelShader.cs
- DeclaredTypeElementCollection.cs
- OwnerDrawPropertyBag.cs
- CompensationHandlingFilter.cs
- ContractAdapter.cs
- HttpModuleActionCollection.cs
- AttributeSetAction.cs
- processwaithandle.cs
- WindowsGraphicsWrapper.cs
- CalendarDay.cs