Clutter.TextBuffer.delete_text

### Method

# Clutter TextBufferdelete_text

#### Declaration [src]

    guint
    clutter_text_buffer_delete_text (
      ClutterTextBuffer* buffer,
      guint position,
      gint n_chars
    )

#### Description [src]

Deletes a sequence of characters from the buffer. `n_chars` characters are deleted starting at `position`. If `n_chars` is negative, then all characters until the end of the text are deleted.

If `position` or `n_chars` are out of bounds, then they are coerced to sane values.

Note that the positions are specified in characters, not bytes.

Available since: | 1.10

#### Parameters

`position` | `guint`
| Position at which to delete text.
`n_chars` | `gint`
| Number of characters to delete.

#### Return value

Returns: | `guint`
| The number of characters deleted.