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
- ProviderSettings.cs
- HandoffBehavior.cs
- CapacityStreamGeometryContext.cs
- AsymmetricCryptoHandle.cs
- GenericAuthenticationEventArgs.cs
- TextBlock.cs
- QilGenerator.cs
- BindingEntityInfo.cs
- FileUtil.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- Repeater.cs
- ConfigurationSchemaErrors.cs
- OracleParameterCollection.cs
- ColumnTypeConverter.cs
- ListViewCancelEventArgs.cs
- DbMetaDataFactory.cs
- CodeMethodReturnStatement.cs
- DbConnectionOptions.cs
- UserControl.cs
- JapaneseCalendar.cs
- ItemPager.cs
- NestPullup.cs
- TemplateControlCodeDomTreeGenerator.cs
- ConcurrencyBehavior.cs
- Buffer.cs
- TimeSpanMinutesConverter.cs
- ErrorFormatterPage.cs
- WpfKnownMemberInvoker.cs
- ChangesetResponse.cs
- WebPartConnectionsDisconnectVerb.cs
- RequestCachingSection.cs
- SettingsBase.cs
- TextServicesLoader.cs
- sitestring.cs
- ArgIterator.cs
- SimpleWebHandlerParser.cs
- DesignTimeTemplateParser.cs
- HtmlInputText.cs
- LogicalCallContext.cs
- DecoderFallback.cs
- ListViewDeleteEventArgs.cs
- ValidationErrorCollection.cs
- AssertUtility.cs
- HttpClientCredentialType.cs
- DataGridHelper.cs
- ModelItemKeyValuePair.cs
- Trigger.cs
- X509Extension.cs
- AsymmetricKeyExchangeDeformatter.cs
- CodeArrayIndexerExpression.cs
- LineSegment.cs
- DataGridCell.cs
- FileDialogPermission.cs
- DataGridViewButtonColumn.cs
- DelegatingConfigHost.cs
- WrapPanel.cs
- LowerCaseStringConverter.cs
- TemplateControlParser.cs
- ColorInterpolationModeValidation.cs
- EasingKeyFrames.cs
- GeneratedView.cs
- SecurityState.cs
- WebSysDefaultValueAttribute.cs
- ControlParameter.cs
- WebScriptMetadataMessage.cs
- HtmlUtf8RawTextWriter.cs
- IndentTextWriter.cs
- HeaderCollection.cs
- CursorConverter.cs
- SByte.cs
- CanonicalXml.cs
- SolidColorBrush.cs
- ToolBar.cs
- Exception.cs
- EnumUnknown.cs
- CatalogPartCollection.cs
- BadImageFormatException.cs
- Peer.cs
- SqlDataSourceCache.cs
- ArglessEventHandlerProxy.cs
- PeerReferralPolicy.cs
- FontStretches.cs
- ElementProxy.cs
- PersistenceContextEnlistment.cs
- DesignerAdapterUtil.cs
- Authorization.cs
- AdornedElementPlaceholder.cs
- RegionIterator.cs
- DeadCharTextComposition.cs
- TreeWalkHelper.cs
- Control.cs
- CommonXSendMessage.cs
- DataStreams.cs
- IsolatedStorageFilePermission.cs
- XmlUtilWriter.cs
- GridPattern.cs
- BindingValueChangedEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- RectangleHotSpot.cs
- WindowsButton.cs