FieldStyleRef
Inheritance: java.lang.Object, com.aspose.words.Field
public class FieldStyleRef extends Field
Implements the STYLEREF field.
To learn more, visit the Working with Fields documentation article.
Remarks:
The STYLEREF is used to reference a fragment of text within the document that is formatted with the specified style.
Examples:
Shows how to use STYLEREF fields.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Create a list based using a Microsoft Word list template.
List list = doc.getLists().add(com.aspose.words.ListTemplate.NUMBER_DEFAULT);
// This generated list will display "1.a )".
// Space before the bracket is a non-delimiter character, which we can suppress.
list.getListLevels().get(0).setNumberFormat("