Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewHitTestInfo.cs / 1 / ListViewHitTestInfo.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
///
///
///
/// Specifies the return value for HITTEST on ListView.
///
///
public class ListViewHitTestInfo {
private ListViewHitTestLocations loc;
private ListViewItem item;
private ListViewItem.ListViewSubItem subItem;
///
///
/// Creates a ListViewHitTestInfo instance.
///
public ListViewHitTestInfo(ListViewItem hitItem, ListViewItem.ListViewSubItem hitSubItem, ListViewHitTestLocations hitLocation) {
this.item = hitItem;
this.subItem = hitSubItem;
this.loc = hitLocation;
}
///
///
/// This gives the exact location returned by hit test on listview.
///
public ListViewHitTestLocations Location {
get {
return loc;
}
}
///
///
/// This gives the ListViewItem returned by hit test on listview.
///
public ListViewItem Item {
get {
return item;
}
}
///
///
/// This gives the ListViewSubItem returned by hit test on listview.
///
public ListViewItem.ListViewSubItem SubItem {
get {
return subItem;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FreezableCollection.cs
- ZoneIdentityPermission.cs
- WrappedIUnknown.cs
- MemberCollection.cs
- SHA512Managed.cs
- AnnotationDocumentPaginator.cs
- CachedFontFamily.cs
- TypeContext.cs
- TraceUtils.cs
- GradientBrush.cs
- SamlAuthorizationDecisionStatement.cs
- unsafenativemethodsother.cs
- ObjectDataProvider.cs
- TraceListeners.cs
- PropertyMetadata.cs
- TokenBasedSetEnumerator.cs
- RuntimeConfigLKG.cs
- ExpressionVisitorHelpers.cs
- ResourceContainer.cs
- DataSourceDesigner.cs
- Parameter.cs
- RowSpanVector.cs
- CodeSnippetExpression.cs
- Types.cs
- HttpCapabilitiesEvaluator.cs
- URL.cs
- ResolveMatchesApril2005.cs
- MenuItemBinding.cs
- Page.cs
- SafeCryptoHandles.cs
- ExpressionStringBuilder.cs
- SQLMoneyStorage.cs
- ApplicationSettingsBase.cs
- InstanceNameConverter.cs
- QueryParameter.cs
- RegexRunnerFactory.cs
- InterleavedZipPartStream.cs
- WindowsBrush.cs
- XamlFilter.cs
- MemberAccessException.cs
- TemplatedAdorner.cs
- WindowsGraphicsWrapper.cs
- XmlDocument.cs
- ConfigXmlReader.cs
- CommonObjectSecurity.cs
- MenuEventArgs.cs
- JavaScriptObjectDeserializer.cs
- CommandEventArgs.cs
- SQLUtility.cs
- TiffBitmapDecoder.cs
- LogicalExpressionEditor.cs
- ObjectDataSourceSelectingEventArgs.cs
- CurrencyWrapper.cs
- BehaviorEditorPart.cs
- DeviceContexts.cs
- GlobalProxySelection.cs
- ListViewItemEventArgs.cs
- NameValueConfigurationElement.cs
- DebugController.cs
- EmptyControlCollection.cs
- WebPartCatalogCloseVerb.cs
- BaseInfoTable.cs
- XmlQueryOutput.cs
- ApplicationDirectoryMembershipCondition.cs
- BridgeDataReader.cs
- RuleSetBrowserDialog.cs
- BitmapEditor.cs
- ApplicationDirectoryMembershipCondition.cs
- SoapCodeExporter.cs
- MatrixIndependentAnimationStorage.cs
- MobileControlDesigner.cs
- BaseAsyncResult.cs
- SharedPerformanceCounter.cs
- AssociationEndMember.cs
- WindowsUpDown.cs
- QueryCacheManager.cs
- CompensationToken.cs
- LabelLiteral.cs
- UserMapPath.cs
- SqlConnection.cs
- UIHelper.cs
- Rijndael.cs
- FragmentQueryKB.cs
- RepeaterItemCollection.cs
- GeometryCollection.cs
- WebPartConnectionsConnectVerb.cs
- GreenMethods.cs
- JapaneseCalendar.cs
- SupportsEventValidationAttribute.cs
- NativeMethodsOther.cs
- InvalidateEvent.cs
- ItemCollection.cs
- UnknownBitmapEncoder.cs
- InstanceOwnerQueryResult.cs
- ControlDesigner.cs
- X509ChainElement.cs
- AmbiguousMatchException.cs
- DictionaryChange.cs
- SingleTagSectionHandler.cs
- AutomationPropertyInfo.cs