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
- MobileUserControlDesigner.cs
- HttpHandlersSection.cs
- ManagementException.cs
- CleanUpVirtualizedItemEventArgs.cs
- ToggleButtonAutomationPeer.cs
- MD5Cng.cs
- DataControlImageButton.cs
- HtmlTableCellCollection.cs
- ProcessModelInfo.cs
- NativeMethods.cs
- DelimitedListTraceListener.cs
- DataGridViewColumnCollection.cs
- CheckedListBox.cs
- SchemaElementLookUpTable.cs
- FormViewUpdatedEventArgs.cs
- GroupBox.cs
- ExtendedProtectionPolicyElement.cs
- UInt32Storage.cs
- SiteMapDataSource.cs
- CfgSemanticTag.cs
- MetadataUtilsSmi.cs
- CqlLexerHelpers.cs
- Pen.cs
- TreeNodeStyleCollection.cs
- Line.cs
- AuthenticationServiceManager.cs
- DataGridViewCheckBoxCell.cs
- SystemDiagnosticsSection.cs
- WebPartCatalogAddVerb.cs
- AsymmetricKeyExchangeDeformatter.cs
- SequentialOutput.cs
- GlobalProxySelection.cs
- _AuthenticationState.cs
- ADMembershipProvider.cs
- COM2ExtendedTypeConverter.cs
- SqlDataSourceQueryEditorForm.cs
- BehaviorDragDropEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- XhtmlBasicSelectionListAdapter.cs
- LayoutEditorPart.cs
- MoveSizeWinEventHandler.cs
- PropertyStore.cs
- HtmlInputSubmit.cs
- X509ServiceCertificateAuthenticationElement.cs
- UpDownBase.cs
- PaperSource.cs
- MenuCommandService.cs
- MdImport.cs
- SqlMethodTransformer.cs
- XmlSchemaElement.cs
- Composition.cs
- BinHexEncoder.cs
- XmlDataDocument.cs
- InstanceLockLostException.cs
- ControlBindingsConverter.cs
- HotSpotCollection.cs
- OperandQuery.cs
- FixedHighlight.cs
- ProcessProtocolHandler.cs
- StylusPlugInCollection.cs
- Socket.cs
- ADRole.cs
- CheckBoxList.cs
- NameValueCollection.cs
- _NestedSingleAsyncResult.cs
- SelectionEditingBehavior.cs
- IgnoreSectionHandler.cs
- PropertyNames.cs
- Html32TextWriter.cs
- ModelItemExtensions.cs
- ListParagraph.cs
- CollectionsUtil.cs
- SoapClientMessage.cs
- TraceListeners.cs
- MultiplexingFormatMapping.cs
- DataColumnCollection.cs
- Sql8ExpressionRewriter.cs
- WebPartTransformer.cs
- TextRangeProviderWrapper.cs
- ToolStripPanelSelectionGlyph.cs
- MatrixCamera.cs
- XmlAtomicValue.cs
- SoapExtension.cs
- DesignTimeTemplateParser.cs
- _SingleItemRequestCache.cs
- ExpressionBuilder.cs
- backend.cs
- TraceSection.cs
- XmlSchemaValidationException.cs
- WindowsGraphics.cs
- RangeValueProviderWrapper.cs
- ContentType.cs
- TouchesCapturedWithinProperty.cs
- DataBoundControlHelper.cs
- ProviderConnectionPointCollection.cs
- DbQueryCommandTree.cs
- XmlAnyAttributeAttribute.cs
- SamlAttributeStatement.cs
- QfeChecker.cs
- GridViewDeleteEventArgs.cs