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
- BindableTemplateBuilder.cs
- TreeViewCancelEvent.cs
- Block.cs
- SQLBytes.cs
- CheckBoxRenderer.cs
- CommandField.cs
- ButtonField.cs
- DbDataReader.cs
- ConfigurationLocationCollection.cs
- XmlUtil.cs
- embossbitmapeffect.cs
- OleDbTransaction.cs
- TypedDataSourceCodeGenerator.cs
- EventLogQuery.cs
- ByteAnimationBase.cs
- CaseCqlBlock.cs
- SizeIndependentAnimationStorage.cs
- Token.cs
- StorageMappingFragment.cs
- dbdatarecord.cs
- LineServices.cs
- UDPClient.cs
- OracleParameter.cs
- IdentifierCollection.cs
- EmbeddedMailObjectsCollection.cs
- BlurEffect.cs
- ActionItem.cs
- Section.cs
- DbProviderConfigurationHandler.cs
- SemaphoreSecurity.cs
- RecognizerStateChangedEventArgs.cs
- ImportCatalogPart.cs
- TabItemWrapperAutomationPeer.cs
- CapabilitiesPattern.cs
- ProcessRequestArgs.cs
- WebColorConverter.cs
- SmtpSection.cs
- XmlSerializableServices.cs
- Keyboard.cs
- DSASignatureFormatter.cs
- ToolStripSeparator.cs
- RealizationContext.cs
- RealProxy.cs
- VariableQuery.cs
- ReadOnlyNameValueCollection.cs
- SmiRequestExecutor.cs
- PerformanceCountersElement.cs
- DisplayNameAttribute.cs
- CqlIdentifiers.cs
- Empty.cs
- Container.cs
- WindowsFormsSynchronizationContext.cs
- RegistryDataKey.cs
- XmlBinaryReader.cs
- ShaderEffect.cs
- PackWebResponse.cs
- LongTypeConverter.cs
- WebPartTransformerCollection.cs
- columnmapfactory.cs
- ExtenderProvidedPropertyAttribute.cs
- IERequestCache.cs
- HostExecutionContextManager.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- MasterPageBuildProvider.cs
- IsolatedStorage.cs
- BitmapPalettes.cs
- IntersectQueryOperator.cs
- UpDownBase.cs
- TextRangeEditTables.cs
- BitmapEffectCollection.cs
- CallbackHandler.cs
- XamlDesignerSerializationManager.cs
- SocketElement.cs
- MimeImporter.cs
- DataGridViewColumnCollection.cs
- WinFormsSecurity.cs
- MostlySingletonList.cs
- XmlAnyElementAttribute.cs
- SortedSetDebugView.cs
- WebControl.cs
- CaseInsensitiveHashCodeProvider.cs
- CqlLexerHelpers.cs
- SubstitutionDesigner.cs
- ComContractElement.cs
- WindowsPen.cs
- ToolBarOverflowPanel.cs
- PrintDialogException.cs
- TextWriter.cs
- BitmapEffectInput.cs
- CorrelationToken.cs
- FormattedText.cs
- SortKey.cs
- LinkedResource.cs
- EditorPartChrome.cs
- Compensate.cs
- ColumnMapTranslator.cs
- ComponentResourceKey.cs
- SafeThemeHandle.cs
- LogPolicy.cs
- SafeEventLogWriteHandle.cs