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
- ResXBuildProvider.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DataGridAutoFormatDialog.cs
- GeneralTransformGroup.cs
- sqlmetadatafactory.cs
- CachingHintValidation.cs
- XmlC14NWriter.cs
- SurrogateEncoder.cs
- DataListItem.cs
- MD5.cs
- UpDownBase.cs
- TimersDescriptionAttribute.cs
- SmiConnection.cs
- TraceSwitch.cs
- CommandHelpers.cs
- NeutralResourcesLanguageAttribute.cs
- RoleManagerEventArgs.cs
- ApplicationDirectory.cs
- NativeActivityMetadata.cs
- SmiRequestExecutor.cs
- XmlSchemaExternal.cs
- XmlSchemaDatatype.cs
- XPathNavigatorReader.cs
- _WebProxyDataBuilder.cs
- Compiler.cs
- TableCellAutomationPeer.cs
- PictureBox.cs
- Form.cs
- SingleTagSectionHandler.cs
- TextEditorDragDrop.cs
- Transform.cs
- TransactionFlowProperty.cs
- InputLanguageSource.cs
- TabControl.cs
- FixedSchema.cs
- ErrorTableItemStyle.cs
- AttributeEmitter.cs
- CompositeControl.cs
- CollectionChangedEventManager.cs
- RewritingValidator.cs
- DataGridViewColumnTypePicker.cs
- DataGridColumnHeaderAutomationPeer.cs
- EventRoute.cs
- SortedList.cs
- SimpleRecyclingCache.cs
- MediaElement.cs
- DispatcherHookEventArgs.cs
- X509WindowsSecurityToken.cs
- RegexCapture.cs
- ParserOptions.cs
- TemplateControlCodeDomTreeGenerator.cs
- HtmlHistory.cs
- BindingContext.cs
- CommonRemoteMemoryBlock.cs
- Application.cs
- metadatamappinghashervisitor.cs
- CompositeCollection.cs
- DataGridViewColumnConverter.cs
- WorkflowDesignerMessageFilter.cs
- XmlReaderDelegator.cs
- ConstraintEnumerator.cs
- MetaChildrenColumn.cs
- EmptyQuery.cs
- GregorianCalendarHelper.cs
- SurrogateSelector.cs
- RTLAwareMessageBox.cs
- DESCryptoServiceProvider.cs
- VisualBrush.cs
- TdsParserSessionPool.cs
- ModulesEntry.cs
- DoubleCollection.cs
- PreviewPageInfo.cs
- WorkflowRuntimeEndpoint.cs
- KeyValuePair.cs
- _CommandStream.cs
- Listbox.cs
- WebAdminConfigurationHelper.cs
- XamlTreeBuilderBamlRecordWriter.cs
- InputScopeNameConverter.cs
- DocumentViewerBaseAutomationPeer.cs
- GenerateScriptTypeAttribute.cs
- WindowsUpDown.cs
- BulletChrome.cs
- MembershipValidatePasswordEventArgs.cs
- FontSourceCollection.cs
- TextBox.cs
- ZipPackage.cs
- GatewayIPAddressInformationCollection.cs
- CompModSwitches.cs
- XmlNamespaceManager.cs
- TemplateControlCodeDomTreeGenerator.cs
- NativeCppClassAttribute.cs
- CompilerError.cs
- BypassElement.cs
- RemotingSurrogateSelector.cs
- latinshape.cs
- loginstatus.cs
- XmlResolver.cs
- Oid.cs
- BooleanStorage.cs