beetlebug▾
/

canvas itemcget

Gives the value of an option of an item.

PATHNAME itemcget TAGORID OPTION

Description

Gives the value of OPTION of the first item of TAGORID. An ID with no item gives an empty string.

Returns

The value of the option.

Examples

% canvas .ig
> .ig create rectangle 0 0 10 10 -fill red
> .ig itemcget 1 -fill
red

Errors

% canvas .ig2; .ig2 itemcget
wrong # args: should be ".ig2 itemcget tagOrId option"
-errorcode NONE

Facts

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

See also