beetlebug▾
/

canvas rchars

Replaces characters of a text item, or coordinates of a line or a polygon.

PATHNAME rchars TAGORID FIRST LAST TEXT

Description

Replaces the characters or the coordinates from FIRST to LAST, both included, with TEXT. For a line or a polygon, TEXT is a list of coordinates.

Returns

An empty string.

Examples

% canvas .rc
> .rc create text 0 0 -text abcdef
> .rc rchars 1 0 1 YZ
> .rc itemcget 1 -text
YZcdef

Errors

% canvas .rc2; .rc2 rchars
wrong # args: should be ".rc2 rchars tagOrId first last string"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also