Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SearchForVirtualItemEventArgs.cs
- RawStylusInput.cs
- Attributes.cs
- ArgumentOutOfRangeException.cs
- Exceptions.cs
- ErrorWebPart.cs
- ListViewItemCollectionEditor.cs
- NativeCppClassAttribute.cs
- ProfileServiceManager.cs
- LayeredChannelFactory.cs
- StorageMappingItemCollection.cs
- IsolatedStorage.cs
- ValueExpressions.cs
- SingleQueryOperator.cs
- SHA1CryptoServiceProvider.cs
- ServiceProviders.cs
- GridViewDeleteEventArgs.cs
- PropertyDescriptorComparer.cs
- HiddenFieldPageStatePersister.cs
- DataBoundControl.cs
- ValidatorCollection.cs
- CheckBoxBaseAdapter.cs
- SessionParameter.cs
- CodeTypeMemberCollection.cs
- IsolatedStoragePermission.cs
- HttpDebugHandler.cs
- DetailsViewModeEventArgs.cs
- TraceInternal.cs
- ReflectionPermission.cs
- HttpSocketManager.cs
- FileDialog.cs
- ToolStripRenderer.cs
- CommandID.cs
- SubclassTypeValidatorAttribute.cs
- ToolboxCategory.cs
- DictionaryEntry.cs
- ImageListUtils.cs
- ToolStripDropDownItem.cs
- DirectionalLight.cs
- GridViewSelectEventArgs.cs
- GreenMethods.cs
- shaperfactory.cs
- UdpChannelListener.cs
- HttpDictionary.cs
- ProfilePropertySettings.cs
- CannotUnloadAppDomainException.cs
- StoreAnnotationsMap.cs
- XsltOutput.cs
- MenuItem.cs
- AlternateViewCollection.cs
- CodeTypeDelegate.cs
- StreamingContext.cs
- DataServiceQueryProvider.cs
- SystemUdpStatistics.cs
- LinqDataSourceStatusEventArgs.cs
- DocumentViewerAutomationPeer.cs
- XmlTextEncoder.cs
- RoleManagerModule.cs
- ListViewInsertEventArgs.cs
- TransactedBatchContext.cs
- VersionedStreamOwner.cs
- ping.cs
- UpdateEventArgs.cs
- ConfigurationLocationCollection.cs
- DateTimeOffsetStorage.cs
- WebPartAddingEventArgs.cs
- HotCommands.cs
- WindowsListViewItem.cs
- RegistryConfigurationProvider.cs
- DocumentReference.cs
- XPathCompileException.cs
- StorageComplexTypeMapping.cs
- QilName.cs
- SQLByte.cs
- DesignSurfaceServiceContainer.cs
- SchemaMapping.cs
- DesignerMetadata.cs
- TokenFactoryCredential.cs
- XmlSchemaSimpleContentExtension.cs
- SelectionPatternIdentifiers.cs
- Automation.cs
- XmlBufferReader.cs
- DataTableClearEvent.cs
- DrawingCollection.cs
- GridViewSelectEventArgs.cs
- DocumentPageView.cs
- Lease.cs
- ControlUtil.cs
- FilterUserControlBase.cs
- RtfToXamlLexer.cs
- ObjectDataSourceMethodEditor.cs
- QueuePropertyVariants.cs
- OleDbPropertySetGuid.cs
- TreeNodeStyleCollection.cs
- DoubleLinkListEnumerator.cs
- HtmlHead.cs
- CurrentChangedEventManager.cs
- DataColumn.cs
- HttpEncoderUtility.cs
- CodeGroup.cs