Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved.Gets the type, column number and row number. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MultiView.cs
- ComponentEditorPage.cs
- EncryptedKey.cs
- KeyNotFoundException.cs
- FormView.cs
- TableCell.cs
- CodeDomSerializerBase.cs
- HttpMethodAttribute.cs
- BinaryCommonClasses.cs
- ContentFilePart.cs
- NetworkAddressChange.cs
- ISO2022Encoding.cs
- Nullable.cs
- Transform3DGroup.cs
- SamlAuthorizationDecisionStatement.cs
- Helpers.cs
- LocalValueEnumerator.cs
- SynchronizedDisposablePool.cs
- ScriptControl.cs
- IgnoreSectionHandler.cs
- XAMLParseException.cs
- DataContractFormatAttribute.cs
- StylusButton.cs
- XamlGridLengthSerializer.cs
- Exceptions.cs
- PrintPageEvent.cs
- DefaultBinder.cs
- HtmlTableCell.cs
- TextDecorationLocationValidation.cs
- DocumentSignatureManager.cs
- CngAlgorithm.cs
- FontUnitConverter.cs
- Geometry3D.cs
- TextEditorSelection.cs
- ProfileElement.cs
- IntegerCollectionEditor.cs
- SessionStateSection.cs
- CompiledQueryCacheEntry.cs
- CategoryValueConverter.cs
- RSAOAEPKeyExchangeFormatter.cs
- MimeTextImporter.cs
- WebGetAttribute.cs
- Padding.cs
- WindowHideOrCloseTracker.cs
- HttpHandlerActionCollection.cs
- ApplicationServiceManager.cs
- DataColumn.cs
- StreamingContext.cs
- FixedStringLookup.cs
- ValueSerializerAttribute.cs
- RootCodeDomSerializer.cs
- SchemaCollectionPreprocessor.cs
- ActivityDesignerHelper.cs
- LinearQuaternionKeyFrame.cs
- Geometry.cs
- ToolstripProfessionalRenderer.cs
- AddInServer.cs
- ProcessRequestArgs.cs
- TextDecorationCollection.cs
- SafeRegistryKey.cs
- X509Certificate.cs
- formatstringdialog.cs
- TextWriter.cs
- ExpandoObject.cs
- PointConverter.cs
- XPathParser.cs
- ErrorReporting.cs
- SafeNativeMethodsCLR.cs
- GridViewUpdatedEventArgs.cs
- OdbcPermission.cs
- CaseInsensitiveComparer.cs
- EventDescriptorCollection.cs
- XmlElementList.cs
- CodeMemberField.cs
- ISFClipboardData.cs
- RequiredFieldValidator.cs
- OciEnlistContext.cs
- WebConfigurationHost.cs
- ACL.cs
- OrderPreservingSpoolingTask.cs
- Quaternion.cs
- SourceItem.cs
- MenuBindingsEditor.cs
- NativeConfigurationLoader.cs
- DataGridViewElement.cs
- CodeMemberEvent.cs
- DaylightTime.cs
- ClrPerspective.cs
- IdnElement.cs
- CultureNotFoundException.cs
- ByteAnimation.cs
- SoapMessage.cs
- PointCollection.cs
- DataGridHeaderBorder.cs
- SmtpMail.cs
- OneOfScalarConst.cs
- Attributes.cs
- ActivityValidator.cs
- ListItemConverter.cs
- AsymmetricKeyExchangeDeformatter.cs