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 / DataGridViewHitTestInfo.cs / 1 / DataGridViewHitTestInfo.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Globalization; namespace System.Windows.Forms { public partial class DataGridView { ///public sealed class HitTestInfo { internal DataGridViewHitTestType type = DataGridViewHitTestType.None; //internal DataGridViewHitTestTypeCloseEdge edge = DataGridViewHitTestTypeCloseEdge.None; internal DataGridViewHitTestTypeInternal typeInternal = DataGridViewHitTestTypeInternal.None; internal int row; internal int col; internal int adjacentRow; internal int adjacentCol; internal int mouseBarOffset; internal int rowStart; internal int colStart; /// /// /// public static readonly HitTestInfo Nowhere = new HitTestInfo(); internal HitTestInfo() { this.type = DataGridViewHitTestType.None; this.typeInternal = DataGridViewHitTestTypeInternal.None; //this.edge = DataGridViewHitTestTypeCloseEdge.None; this.row = this.col = -1; this.rowStart = this.colStart = -1; this.adjacentRow = this.adjacentCol = -1; } ///Allows the ///object to inform you the /// extent of the grid. /// /// public int ColumnIndex { get { return this.col; } } ///Gets the number of the clicked column. ////// /// public int RowIndex { get { return this.row; } } ///Gets the /// number of the clicked row. ////// /// public int ColumnX { get { return this.colStart; } } ///Gets the left edge of the column. ////// /// public int RowY { get { return this.rowStart; } } ///Gets the top edge of the row. ////// /// public DataGridViewHitTestType Type { get { return this.type; } } ///Gets the part of the ///control, other than the row or column, that was /// clicked. /// /// public override bool Equals(object value) { HitTestInfo hti = value as HitTestInfo; if (hti != null) { return (this.type == hti.type && this.row == hti.row && this.col == hti.col); } return false; } ///Indicates whether two objects are identical. ////// /// public override int GetHashCode() { return WindowsFormsUtils.GetCombinedHashCodes((int) this.type, this.row, this.col); } ///Gets the hash code for the ///instance. /// /// public override string ToString() { return "{ Type:" + type.ToString() + ", Column:" + col.ToString(CultureInfo.CurrentCulture) + ", Row:" + row.ToString(CultureInfo.CurrentCulture) + " }"; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the type, column number and row number. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Globalization; namespace System.Windows.Forms { public partial class DataGridView { ///public sealed class HitTestInfo { internal DataGridViewHitTestType type = DataGridViewHitTestType.None; //internal DataGridViewHitTestTypeCloseEdge edge = DataGridViewHitTestTypeCloseEdge.None; internal DataGridViewHitTestTypeInternal typeInternal = DataGridViewHitTestTypeInternal.None; internal int row; internal int col; internal int adjacentRow; internal int adjacentCol; internal int mouseBarOffset; internal int rowStart; internal int colStart; /// /// /// public static readonly HitTestInfo Nowhere = new HitTestInfo(); internal HitTestInfo() { this.type = DataGridViewHitTestType.None; this.typeInternal = DataGridViewHitTestTypeInternal.None; //this.edge = DataGridViewHitTestTypeCloseEdge.None; this.row = this.col = -1; this.rowStart = this.colStart = -1; this.adjacentRow = this.adjacentCol = -1; } ///Allows the ///object to inform you the /// extent of the grid. /// /// public int ColumnIndex { get { return this.col; } } ///Gets the number of the clicked column. ////// /// public int RowIndex { get { return this.row; } } ///Gets the /// number of the clicked row. ////// /// public int ColumnX { get { return this.colStart; } } ///Gets the left edge of the column. ////// /// public int RowY { get { return this.rowStart; } } ///Gets the top edge of the row. ////// /// public DataGridViewHitTestType Type { get { return this.type; } } ///Gets the part of the ///control, other than the row or column, that was /// clicked. /// /// public override bool Equals(object value) { HitTestInfo hti = value as HitTestInfo; if (hti != null) { return (this.type == hti.type && this.row == hti.row && this.col == hti.col); } return false; } ///Indicates whether two objects are identical. ////// /// public override int GetHashCode() { return WindowsFormsUtils.GetCombinedHashCodes((int) this.type, this.row, this.col); } ///Gets the hash code for the ///instance. /// /// public override string ToString() { return "{ Type:" + type.ToString() + ", Column:" + col.ToString(CultureInfo.CurrentCulture) + ", Row:" + row.ToString(CultureInfo.CurrentCulture) + " }"; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the type, column number and row number. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReachFixedDocumentSerializerAsync.cs
- XpsTokenContext.cs
- Point3D.cs
- DeclarativeCatalogPart.cs
- OrderedDictionaryStateHelper.cs
- BrowserCapabilitiesFactory.cs
- ManagedIStream.cs
- infer.cs
- ToolStripDesignerAvailabilityAttribute.cs
- HandlerBase.cs
- ListViewInsertedEventArgs.cs
- ProfileSettings.cs
- ReachPageContentCollectionSerializerAsync.cs
- MulticastNotSupportedException.cs
- webproxy.cs
- CreatingCookieEventArgs.cs
- Helpers.cs
- ConstantExpression.cs
- RuleCache.cs
- XmlEventCache.cs
- PageTheme.cs
- XPathEmptyIterator.cs
- WinInetCache.cs
- XMLUtil.cs
- KeyTimeConverter.cs
- ArgIterator.cs
- ParentQuery.cs
- TableParaClient.cs
- Guid.cs
- DetailsViewUpdatedEventArgs.cs
- Int32RectConverter.cs
- shaperfactoryquerycacheentry.cs
- SingleTagSectionHandler.cs
- Annotation.cs
- WebServiceClientProxyGenerator.cs
- DataView.cs
- XpsS0ValidatingLoader.cs
- RuntimeVariablesExpression.cs
- KeyFrames.cs
- Vertex.cs
- DataGridViewCellEventArgs.cs
- XmlMembersMapping.cs
- Resources.Designer.cs
- ByteFacetDescriptionElement.cs
- GCHandleCookieTable.cs
- FigureParagraph.cs
- Axis.cs
- MaxSessionCountExceededException.cs
- Attribute.cs
- Transform3DGroup.cs
- SoapIgnoreAttribute.cs
- XmlSerializerOperationGenerator.cs
- WebPartCloseVerb.cs
- MiniMapControl.xaml.cs
- ViewPort3D.cs
- PeerName.cs
- DesignTimeSiteMapProvider.cs
- DataGridViewCellParsingEventArgs.cs
- AsyncOperationManager.cs
- FloaterBaseParaClient.cs
- UnsafeMethods.cs
- oledbmetadatacollectionnames.cs
- WebServiceHandlerFactory.cs
- SafeLibraryHandle.cs
- SmiMetaDataProperty.cs
- StreamUpgradeAcceptor.cs
- ComponentCommands.cs
- SecureStringHasher.cs
- mil_sdk_version.cs
- SqlUdtInfo.cs
- Receive.cs
- WebEncodingValidator.cs
- CodeDelegateCreateExpression.cs
- SAPIEngineTypes.cs
- ToolStripGrip.cs
- TextElementEditingBehaviorAttribute.cs
- EncoderExceptionFallback.cs
- NumberFunctions.cs
- ActiveXSite.cs
- Rect3DConverter.cs
- WebServiceHandlerFactory.cs
- TextBoxBase.cs
- TextServicesLoader.cs
- EdmConstants.cs
- HistoryEventArgs.cs
- CustomErrorsSectionWrapper.cs
- GenerateDerivedKeyRequest.cs
- SafeNativeMethods.cs
- CqlIdentifiers.cs
- DataBoundControl.cs
- FrameworkElementFactory.cs
- SQLBytesStorage.cs
- WebPartHelpVerb.cs
- SpellerStatusTable.cs
- UrlAuthFailedErrorFormatter.cs
- Point3DAnimationUsingKeyFrames.cs
- ControllableStoryboardAction.cs
- User.cs
- LogAppendAsyncResult.cs
- SkinBuilder.cs