"configBlock_ScheduleDefinitionsWrapper": {
"content": [
{
"type": "STRUCTURED_DOCUMENT_TAG",
"content": [
{
"type": "SDT_PROPERTIES",
"content": [
{
"type": "TAG",
"attributes": {
"val": "SCH-DEF-TEXT"
}
}
]
},
{
"type": "SDT_CONTENT",
"content": [
{
"type": "PARAGRAPH",
"content": [
{
"type": "PARAGRAPH_PROPERTIES",
"content": [
{
"type": "INDENTATION",
"attributes": {
"left": "720"
}
}
]
},
{
"type": "RUN",
"content": [
{
"type": "TEXT",
"text": "{}",
"variableType": "SCH-DEF-TEXT"
}
]
}
]
}
]
}
]
},
{
"type": "STRUCTURED_DOCUMENT_TAG",
"content": [
{
"type": "SDT_PROPERTIES",
"content": [
{
"type": "TAG",
"attributes": {
"val": "SCH-DEF-SUBDEFINITION1"
}
}
]
},
{
"type": "SDT_CONTENT",
"content": [
{
"type": "PARAGRAPH",
"content": [
{
"type": "PARAGRAPH_PROPERTIES",
"content": [
{
"type": "PARAGRAPH_STYLE",
"attributes": {
"val": "BB-DefNumber1(Legal)"
}
},
{
"type": "NUMBERING_PROPERTIES",
"content": [
{
"type": "INDENTATION_LEVEL",
"attributes": {
"val": "1"
}
},
{
"type": "NUMBERING_ID",
"attributes": {
"val": "23"
}
}
]
}
]
},
{
"type": "RUN",
"content": [
{
"type": "TEXT",
"text": "{}",
"variableType": "SCH-DEF-SUBDEFINITION1"
}
]
}
]
}
]
}
]
},
{
"type": "STRUCTURED_DOCUMENT_TAG",
"content": [
{
"type": "SDT_PROPERTIES",
"content": [
{
"type": "TAG",
"attributes": {
"val": "SCH-DEF-SUBDEFINITION2"
}
}
]
},
{
"type": "SDT_CONTENT",
"content": [
{
"type": "PARAGRAPH",
"content": [
{
"type": "PARAGRAPH_PROPERTIES",
"content": [
{
"type": "PARAGRAPH_STYLE",
"attributes": {
"val": "BB-DefNumber2(Legal)"
}
},
{
"type": "NUMBERING_PROPERTIES",
"content": [
{
"type": "INDENTATION_LEVEL",
"attributes": {
"val": "2"
}
},
{
"type": "NUMBERING_ID",
"attributes": {
"val": "23"
}
}
]
}
]
},
{
"type": "RUN",
"content": [
{
"type": "TEXT",
"text": "{}",
"variableType": "SCH-DEF-SUBDEFINITION2"
}
]
}
]
}
]
}
]
},
{
"type": "STRUCTURED_DOCUMENT_TAG",
"content": [
{
"type": "SDT_PROPERTIES",
"content": [
{
"type": "TAG",
"attributes": {
"val": "SCH-DEF-CONTINUED"
}
}
]
},
{
"type": "SDT_CONTENT",
"content": [
{
"type": "PARAGRAPH",
"content": [
{
"type": "PARAGRAPH_PROPERTIES",
"content": [
{
"type": "INDENTATION",
"attributes": {
"left": "720"
}
}
]
},
{
"type": "RUN",
"content": [
{
"type": "TEXT",
"text": "{}",
"variableType": "SCH-DEF-CONTINUED"
}
]
}
]
}
]
}
]
},
{
"type": "STRUCTURED_DOCUMENT_TAG",
"content": [
{
"type": "SDT_PROPERTIES",
"content": [
{
"type": "TAG",
"attributes": {
"val": "SCH-DEF-TEXT-FINAL"
}
}
]
},
{
"type": "SDT_CONTENT",
"content": [
{
"type": "PARAGRAPH",
"content": [
{
"type": "PARAGRAPH_PROPERTIES",
"content": [
{
"type": "INDENTATION",
"attributes": {
"left": "720"
}
}
]
},
{
"type": "RUN",
"content": [
{
"type": "TEXT",
"text": "{}",
"variableType": "SCH-DEF-TEXT-FINAL"
}
]
}
]
}
]
}
]
}
]
} },
Aspose.Words does support the use of numbering properties such as NUMBERING_ID
and INDENTATION_LEVEL
. You can define these properties within structured document tags (SDTs) to manage the formatting of lists in your documents.
Here’s a brief overview of how you can implement these properties:
-
NUMBERING_ID: This property is used to specify which numbering format to apply to a paragraph. You can set this property to link the paragraph to a specific list defined in your document.
-
INDENTATION_LEVEL: This property allows you to set the indentation level for the paragraph, which is useful for creating nested lists.
Here is an example of how you might structure your code to include these properties:
import com.aspose.words.*;
public class NumberingExample {
public static void main(String[] args) throws Exception {
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Create a numbered list
List list = doc.getLists().add(ListTemplate.NUMBER_DEFAULT);
// Set the list format for the first paragraph
builder.getListFormat().setList(list);
builder.writeln("First item");
// Set the second item with a different indentation level
builder.getListFormat().setListLevelNumber(1); // Indentation level 1
builder.writeln("Second item (Indented)");
// Set the third item with a different numbering ID
builder.getListFormat().setListLevelNumber(0); // Back to level 0
builder.writeln("Third item");
// Save the document
doc.save("NumberedListExample.docx");
}
}
In this example, the setListLevelNumber
method is used to specify the indentation level for each item in the list. You can adjust the NUMBERING_ID
by modifying the list template or creating a new list with a specific template.
For more detailed examples and further customization options, you may want to explore the Aspose.Words documentation or related code samples available in the Aspose GitHub repository.
If you have any specific requirements or further questions, feel free to ask!
@AAddd Unfortunately, your question is not clear enough. Could you please elaborate your scenario in more details.