This example changes the name of the first graphic object.
TextGraphics graphics = document.getTextGraphics(); TextGraphic graphic = graphics.item(1); graphic.setName("Job");
Related information
Name property