Create a categorized column with Script

Hi,I want to create a categorized column with LN Script. I know how to create a column, but I do not know how to categorize this column.

flag = notesViewColumn.IsCategory is read only !

I can copy a categorized column from an existing view, but is there another possibilty.