---
id: "T:cAlgo.API.ChartObjectHoverChangedEventArgs"
kind: "class"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartObjectHoverChangedEventArgs/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartObjectHoverChangedEventArgs (class)

Provides data for the mouse hover over a chart object event.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never raised in the CLI: the events that pass it never fire there (ChartArea.ObjectHoverChanged).
- Cloud: Never raised in the cloud: the events that pass it never fire there (ChartArea.ObjectHoverChanged).

## Definition

```csharp
public class ChartObjectHoverChangedEventArgs : ChartObjectEventArgs
```

## Examples

C#:

```csharp
using cAlgo.API;

namespace cAlgo
{
    // This example shows how to use the Chart ChartObjectHoverChangedEventArgs
    // ChartObjectHoverChangedEventArgs is derived from ChartObjectsEventArgs
    // Draw an object and move mouse over it
    public partial class ChartObjectHoverChangedEventArgsSample : Indicator
    {
        protected override void Initialize()
        {
            Chart.ObjectHoverChanged += Chart_ObjectHoverChanged;
        }

        private void Chart_ObjectHoverChanged(ChartObjectHoverChangedEventArgs obj)
        {
            Chart.DrawStaticText("hover", string.Format("Is Object Hovered: {0}", obj.IsObjectHovered), VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
        }

        public override void Calculate(int index)
        {
        }
    }
}
```

Python:

```python
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        api.Chart.ObjectHoverChanged += self.on_chart_object_hover_changed

    def on_chart_object_hover_changed(self, args):
        api.Chart.DrawStaticText("hover", f"Is Object Hovered: {args.IsObjectHovered}", VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red)
```

config.json:

```json
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}
```

## Properties

- `public bool IsObjectHovered {get;}` — Defines if the mouse is hovered over the chart object. [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartObjectHoverChangedEventArgs/IsObjectHovered/index.md)

## Inherited members

- `public Chart Chart {get;}` (from ChartObjectEventArgs) [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartObjectEventArgs/Chart/index.md)
- `public ChartArea Area {get;}` (from ChartObjectEventArgs) [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartObjectEventArgs/Area/index.md)
- `public ChartObject ChartObject {get;}` (from ChartObjectEventArgs) [details](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartObjectEventArgs/ChartObject/index.md)

