Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SrgsNameValueTag.cs
- ChildDocumentBlock.cs
- DataGridViewBand.cs
- PerspectiveCamera.cs
- DataControlCommands.cs
- Paragraph.cs
- SqlDelegatedTransaction.cs
- InvokeMethodActivity.cs
- TypeName.cs
- SecurityListenerSettingsLifetimeManager.cs
- UIElement.cs
- GeneralTransform3DTo2D.cs
- Int32AnimationBase.cs
- VisualTreeUtils.cs
- HostExecutionContextManager.cs
- HttpListenerContext.cs
- BinaryWriter.cs
- WindowsTooltip.cs
- ArglessEventHandlerProxy.cs
- OrderedDictionaryStateHelper.cs
- ReadingWritingEntityEventArgs.cs
- CoTaskMemHandle.cs
- RuntimeHelpers.cs
- AssemblyAttributes.cs
- StrokeRenderer.cs
- TypedTableBaseExtensions.cs
- Util.cs
- DataGridViewRowCancelEventArgs.cs
- RawAppCommandInputReport.cs
- AttachedAnnotationChangedEventArgs.cs
- Instrumentation.cs
- TripleDES.cs
- IntranetCredentialPolicy.cs
- GifBitmapDecoder.cs
- Expressions.cs
- PageAdapter.cs
- Point3D.cs
- BaseComponentEditor.cs
- ReadOnlyState.cs
- XomlDesignerLoader.cs
- ResourceReader.cs
- MediaCommands.cs
- OptimalBreakSession.cs
- DispatchWrapper.cs
- RuleSetDialog.Designer.cs
- WorkflowDesignerMessageFilter.cs
- StaticSiteMapProvider.cs
- DBSchemaTable.cs
- RemoteWebConfigurationHostServer.cs
- StatusBarAutomationPeer.cs
- DocumentViewerConstants.cs
- ItemCollection.cs
- ListViewInsertedEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- SamlAdvice.cs
- TraceSwitch.cs
- SimpleWorkerRequest.cs
- TagNameToTypeMapper.cs
- PeerDuplexChannelListener.cs
- CodeEventReferenceExpression.cs
- CompositeKey.cs
- InkCanvas.cs
- TypeElement.cs
- WorkflowRuntimeBehavior.cs
- SocketPermission.cs
- DeviceContext.cs
- SettingsBase.cs
- TranslateTransform3D.cs
- SHA256Managed.cs
- RoutedEvent.cs
- ToolStripDropDownClosedEventArgs.cs
- CustomValidator.cs
- PriorityRange.cs
- IPEndPointCollection.cs
- FixedBufferAttribute.cs
- AssemblyBuilder.cs
- ControllableStoryboardAction.cs
- webbrowsersite.cs
- SqlCrossApplyToCrossJoin.cs
- EventLog.cs
- Renderer.cs
- WindowsImpersonationContext.cs
- TypeEnumerableViewSchema.cs
- SafeUserTokenHandle.cs
- Config.cs
- NativeCppClassAttribute.cs
- VsPropertyGrid.cs
- XXXInfos.cs
- SQLInt32Storage.cs
- SafeProcessHandle.cs
- HwndMouseInputProvider.cs
- XmlDictionaryReaderQuotas.cs
- Decimal.cs
- OleDbConnection.cs
- TableNameAttribute.cs
- CommonBehaviorsSection.cs
- StrokeDescriptor.cs
- CompositeFontInfo.cs
- FixedSOMSemanticBox.cs
- GrammarBuilderRuleRef.cs