Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewHitTestInfo.cs / 1305376 / ListViewHitTestInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; ////// /// public class ListViewHitTestInfo { private ListViewHitTestLocations loc; private ListViewItem item; private ListViewItem.ListViewSubItem subItem; ////// Specifies the return value for HITTEST on ListView. /// ////// /// 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; ////// /// public class ListViewHitTestInfo { private ListViewHitTestLocations loc; private ListViewItem item; private ListViewItem.ListViewSubItem subItem; ////// Specifies the return value for HITTEST on ListView. /// ////// /// 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
- KeyManager.cs
- EntityDataSourceDesignerHelper.cs
- COM2EnumConverter.cs
- NotifyInputEventArgs.cs
- TypeResolver.cs
- GridViewRowEventArgs.cs
- DynamicValueConverter.cs
- AnnotationResourceCollection.cs
- CommandEventArgs.cs
- FlowDocumentPageViewerAutomationPeer.cs
- EncryptedData.cs
- CommandConverter.cs
- Misc.cs
- UriTemplateVariableQueryValue.cs
- GridViewAutoFormat.cs
- VisualStyleRenderer.cs
- ForceCopyBuildProvider.cs
- ActivityBuilderHelper.cs
- AccessDataSource.cs
- TypeValidationEventArgs.cs
- XmlSchemaElement.cs
- XPathParser.cs
- RowsCopiedEventArgs.cs
- Context.cs
- SystemIPInterfaceProperties.cs
- ValueCollectionParameterReader.cs
- LayoutInformation.cs
- CoreSwitches.cs
- SqlProvider.cs
- ControlAdapter.cs
- ProfilePropertyNameValidator.cs
- AllowedAudienceUriElementCollection.cs
- StylusPlugin.cs
- ThaiBuddhistCalendar.cs
- ImageFormat.cs
- WebPartActionVerb.cs
- DataGridViewSelectedCellCollection.cs
- DataRecordInternal.cs
- ManifestBasedResourceGroveler.cs
- BasicExpandProvider.cs
- ReferencedAssembly.cs
- ObsoleteAttribute.cs
- WebPartConnection.cs
- SiteMapNodeCollection.cs
- elementinformation.cs
- RSAOAEPKeyExchangeFormatter.cs
- HostingEnvironment.cs
- DataGridViewCheckBoxCell.cs
- XPathEmptyIterator.cs
- WebPartEditorOkVerb.cs
- DesignRelationCollection.cs
- ConstraintCollection.cs
- CodeCommentStatement.cs
- CompilerTypeWithParams.cs
- TypeEnumerableViewSchema.cs
- ComponentDispatcher.cs
- ObjectListCommandEventArgs.cs
- NumericUpDownAcceleration.cs
- EdmSchemaAttribute.cs
- PageThemeParser.cs
- TrackingServices.cs
- Triangle.cs
- PresentationSource.cs
- DependencyObjectPropertyDescriptor.cs
- UiaCoreTypesApi.cs
- ConfigErrorGlyph.cs
- HtmlFormWrapper.cs
- XPathNavigatorReader.cs
- BuilderElements.cs
- AdapterUtil.cs
- SystemThemeKey.cs
- _SslStream.cs
- ComboBox.cs
- RectAnimationClockResource.cs
- _CommandStream.cs
- WebPartZone.cs
- MetadataFile.cs
- WinInetCache.cs
- PointHitTestParameters.cs
- VectorAnimationUsingKeyFrames.cs
- ByteStack.cs
- AvTraceFormat.cs
- MaskDescriptor.cs
- ResourceCategoryAttribute.cs
- UInt32Converter.cs
- XmlLanguage.cs
- Interlocked.cs
- WebBrowserNavigatedEventHandler.cs
- OleStrCAMarshaler.cs
- ToolStripContentPanel.cs
- Base64Stream.cs
- X509Chain.cs
- DefaultAutoFieldGenerator.cs
- SqlTriggerAttribute.cs
- MouseOverProperty.cs
- IndexerReference.cs
- HostProtectionException.cs
- StorageComplexPropertyMapping.cs
- QueryInterceptorAttribute.cs
- NativeActivityTransactionContext.cs