# UserInput.SendMouseWheel Method

> Informs the view generator about a mouse wheel event.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > UserInput.SendMouseWheel Method
- **838 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendmousewheel-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendmousewheel-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendmousewheel-method/llms-full.txt

---

### Description

Informs the view generator about a mouse wheel event.

### Syntax

```csharp
public bool SendMouseWheel(Point viewLocation, int delta, UserInput.MouseButtons button, UserInput.ModifierKeys modifierKeys);
```

```vbnet
Public Function SendMouseWheel(viewLocation As Point, delta As Integer, button As UserInput.MouseButtons, modifierKeys As UserInput.ModifierKeys) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| viewLocation | Specifies the location, where the mouse wheel event occurs. The coordinates must be in pixels with an origin at the top-left corner of the view's location. |
| delta | Indicates the distance the wheel is rotated, expressed in multiples or divisions of 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user. |
| button | Specifies a pressed mouse button. It can be a value from the [ServerVisualization.UserInput.MouseButtons](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/mousebuttons-enumeration/llms-full.txt) enumeration. |
| modifierKeys | Specifies modifier keys. It can be a combination of the [ServerVisualization.UserInput.ModifierKeys](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/modifierkeys-enumeration/llms-full.txt) values. |

### Return Value

If the event has been handled, the method returns true. Otherwise, it returns false.

### Examples

The following example uses Send Mouse Wheel in a focused User Input workflow.

```csharp
if (userInput.SendMouseWheel(new System.Drawing.Point(20, 20), 10, TXTextControl.ServerVisualisation.UserInput.MouseButtons.Left, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift))
{
    Console.WriteLine("Send Mouse Wheel completed successfully.");
}
```

```vbnet
If userInput.SendMouseWheel(New System.Drawing.Point(20, 20), 10, TXTextControl.ServerVisualisation.UserInput.MouseButtons.Left, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift) Then
    Console.WriteLine("Send Mouse Wheel completed successfully.")
End If
```

---

## Nearby

- **Previous:** [UserInput.SendMouseUp Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendmouseup-method/llms-full.txt)
- **Next:** [View Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/view/llms-full.txt)
