Code:
/ DotNET / DotNET / 8.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
- DesignerGeometryHelper.cs
- CodeTypeParameter.cs
- SubstitutionResponseElement.cs
- BitmapEffectInputData.cs
- LongPath.cs
- WindowsFormsSectionHandler.cs
- AsnEncodedData.cs
- FloaterParaClient.cs
- ClientOptions.cs
- DataColumnSelectionConverter.cs
- PreviewPageInfo.cs
- BuildProvider.cs
- RegisteredExpandoAttribute.cs
- WebExceptionStatus.cs
- TabletDevice.cs
- DataGridComponentEditor.cs
- WebPartTransformerAttribute.cs
- SqlDataSourceCustomCommandPanel.cs
- AesCryptoServiceProvider.cs
- FillErrorEventArgs.cs
- Vector3DAnimation.cs
- Utility.cs
- WindowExtensionMethods.cs
- XmlFormatExtensionPointAttribute.cs
- CodeTypeParameter.cs
- ADConnectionHelper.cs
- SecurityElement.cs
- UIElement.cs
- WebReferenceCollection.cs
- NativeMethods.cs
- DataSourceControlBuilder.cs
- RecordsAffectedEventArgs.cs
- DataFormats.cs
- CancelEventArgs.cs
- CatalogZoneBase.cs
- MediaPlayer.cs
- XNodeValidator.cs
- InstanceCompleteException.cs
- ExceptQueryOperator.cs
- CuspData.cs
- FixedTextSelectionProcessor.cs
- EntityContainerEmitter.cs
- TextBoxDesigner.cs
- XamlSerializer.cs
- MailWriter.cs
- SendActivityDesignerTheme.cs
- DynamicMethod.cs
- ActivityBindForm.cs
- PageStatePersister.cs
- CodePropertyReferenceExpression.cs
- MemberDomainMap.cs
- LinqDataSourceDeleteEventArgs.cs
- OperationCanceledException.cs
- ContextStack.cs
- HtmlInputRadioButton.cs
- DataReceivedEventArgs.cs
- DisplayMemberTemplateSelector.cs
- FieldToken.cs
- JsonWriter.cs
- RuntimeHandles.cs
- SamlSerializer.cs
- TextChangedEventArgs.cs
- Utils.cs
- SqlStatistics.cs
- HttpListener.cs
- DataGridViewColumnEventArgs.cs
- ReaderOutput.cs
- Label.cs
- DoubleStorage.cs
- TextEmbeddedObject.cs
- Accessors.cs
- OracleParameterBinding.cs
- XmlnsPrefixAttribute.cs
- RunClient.cs
- TableCellsCollectionEditor.cs
- FixedSOMElement.cs
- AssertFilter.cs
- HttpErrorTraceRecord.cs
- DataView.cs
- Exceptions.cs
- PrinterUnitConvert.cs
- CheckedPointers.cs
- TextServicesPropertyRanges.cs
- TextStore.cs
- SqlClientWrapperSmiStreamChars.cs
- Point3DAnimationBase.cs
- DefaultSection.cs
- FastEncoder.cs
- CodeGen.cs
- DetailsViewRow.cs
- Config.cs
- IListConverters.cs
- FileNotFoundException.cs
- ServiceModelEnumValidator.cs
- HelpEvent.cs
- MobileSysDescriptionAttribute.cs
- DiscoveryUtility.cs
- Graphics.cs
- SqlRecordBuffer.cs
- WebPartConnectionCollection.cs