Gtk.IMContext::delete-surrounding
Description: Reference for signal Gtk.IMContext::delete-surrounding

### Signal

# Gtk IMContext::delete-surrounding

since: 4.0

#### Declaration

    gboolean
    delete_surrounding (
      GtkIMContext* self,
      gint offset,
      gint n_chars,
      gpointer user_data
    )

#### Description [src]

The ::delete-surrounding signal is emitted when the input method needs to delete all or part of the context surrounding the cursor.

Default handler: The default handler is called after the handlers added via `g_signal_connect()`.
Available since: 4.0

#### Parameters

`offset`

  Type: `gint`

  The character offset from the cursor position of the text to be deleted. A negative value indicates a position before the cursor.

`n_chars`

  Type: `gint`

  The number of characters to be deleted.

#### Return value

Type: `gboolean`

`TRUE` if the signal was handled.