man mtext_attach_property () - Attach a text property to an M-text.

NAME

mtext_attach_property - Attach a text property to an M-text.

SYNOPSIS

int mtext_attach_property (MText * mt, int from, int to, MTextProperty * prop)

DESCRIPTION

The mtext_attach_property() function attaches text property prop to the range between from and to in M-text mt. If prop is already attached to an M-text, it is detached before attached to mt.

RETURN VALUE

If the operation was successful, mtext_attach_property() returns 0. Otherwise it returns -1 and assigns an error code to the external variable merror_code.