Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SplitterEvent.cs
- FilteredAttributeCollection.cs
- ServicesUtilities.cs
- DataGridState.cs
- FileLevelControlBuilderAttribute.cs
- RichTextBox.cs
- CommittableTransaction.cs
- AutomationPatternInfo.cs
- EDesignUtil.cs
- EventlogProvider.cs
- CellPartitioner.cs
- SemanticResolver.cs
- TextRange.cs
- Schema.cs
- AdapterDictionary.cs
- DelayedRegex.cs
- ColorConvertedBitmapExtension.cs
- ResourceDescriptionAttribute.cs
- SchemaSetCompiler.cs
- ColorConvertedBitmapExtension.cs
- ProjectionNode.cs
- XmlAnyAttributeAttribute.cs
- FlowNode.cs
- ToolStripOverflow.cs
- EntityCommand.cs
- BCryptNative.cs
- HashCryptoHandle.cs
- RoleManagerModule.cs
- XmlSchemaCompilationSettings.cs
- SimpleLine.cs
- ColorContext.cs
- TraceContextRecord.cs
- FromRequest.cs
- Int32Converter.cs
- NoResizeHandleGlyph.cs
- LockCookie.cs
- PageCatalogPart.cs
- ChangeNode.cs
- ParameterBuilder.cs
- SerialReceived.cs
- ModelTreeEnumerator.cs
- ToolBarButtonClickEvent.cs
- FrameworkElement.cs
- EncoderNLS.cs
- CompositionCommandSet.cs
- HtmlFormWrapper.cs
- ProfileInfo.cs
- ValidatedControlConverter.cs
- TreeNodeMouseHoverEvent.cs
- Helpers.cs
- AtlasWeb.Designer.cs
- TemplateControlParser.cs
- VisualStyleInformation.cs
- List.cs
- UnsafeNativeMethods.cs
- Deflater.cs
- SocketInformation.cs
- CorrelationManager.cs
- SystemIPGlobalStatistics.cs
- IntSecurity.cs
- BindToObject.cs
- WindowsFormsHost.cs
- InputReport.cs
- ObservableDictionary.cs
- EdmValidator.cs
- XmlSchemaNotation.cs
- DispatchChannelSink.cs
- _AutoWebProxyScriptWrapper.cs
- ClientScriptItem.cs
- InheritablePropertyChangeInfo.cs
- TagMapInfo.cs
- ByteStream.cs
- WebPartTransformerAttribute.cs
- ContextMarshalException.cs
- ValidationSummary.cs
- DocumentApplicationState.cs
- Path.cs
- PageMediaType.cs
- UpdatePanelControlTrigger.cs
- FastEncoder.cs
- DependencyPropertyKey.cs
- Timeline.cs
- ReliableSessionBindingElement.cs
- DocumentApplicationDocumentViewer.cs
- UriExt.cs
- ListView.cs
- XhtmlBasicCalendarAdapter.cs
- DesignerCommandAdapter.cs
- TemplateParser.cs
- FrameworkContentElementAutomationPeer.cs
- WebResourceAttribute.cs
- FixedSOMLineRanges.cs
- OdbcUtils.cs
- EmptyStringExpandableObjectConverter.cs
- PassportAuthentication.cs
- QuinticEase.cs
- XmlRawWriter.cs
- SecureEnvironment.cs
- RootBrowserWindowAutomationPeer.cs
- XmlNamespaceDeclarationsAttribute.cs