Class HitTestInfo
Contains information about a part of the Chart at a specified coordinate.
Inheritance
System.Object
HitTestInfo
Namespace: FastReport.BG.Common
Assembly: FastReport.BG.dll
Syntax
public sealed class HitTestInfo
Examples
This example shows how to get record data under the mouse pointer during the mouse move:
private void sunburst1_MouseMove(object sender, MouseEventArgs e)
{
HitTestInfo info = sunburst1.HitTest(e.Location);
if (info.Type == HitTestType.Node)
Console.WriteLine(info.Node.Record.Text);
}
Constructors
HitTestInfo(HitTestType, NodeBase)
Creates a new instance of the HitTestInfo
Declaration
public HitTestInfo(HitTestType type, NodeBase node = null)
Parameters
Type | Name | Description |
---|---|---|
HitTestType | type | The type of the Chart control under the mouse |
NodeBase | node | The part of the Chart control under the mouse |
Properties
Node
Gets the part of the Chart control, under the mouse.
Declaration
public NodeBase Node { get; }
Property Value
Type | Description |
---|---|
NodeBase |
Type
Gets the type of the Chart control, under the mouse.
Declaration
public HitTestType Type { get; }
Property Value
Type | Description |
---|---|
HitTestType |
Methods
Equals(Object)
Indicates whether two objects are identical.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The second object to compare, typed as Object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the objects are equal; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Gets the hash code for the HitTestInfo instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this instance. |
Overrides
System.Object.GetHashCode()