Microsoft Word · Schema
Paragraph
Represents a single paragraph in a Word document.
DocumentsMicrosoft 365OfficeProductivityWord Processing
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier of the paragraph. |
| text | string | Plain text content of the paragraph. |
| style | string | Style name applied to the paragraph. |
| alignment | string | Text alignment (Left, Centered, Right, Justified). |
| firstLineIndent | number | First line indent value in points. |
| lineSpacing | number | Line spacing in points. |
| outlineLevel | integer | Outline level of the paragraph. |
| isListItem | boolean | Whether the paragraph is part of a list. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/microsoft-word/refs/heads/main/json-schema/javascript-api-paragraph-schema.json",
"title": "Paragraph",
"description": "Represents a single paragraph in a Word document.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier of the paragraph."
},
"text": {
"type": "string",
"description": "Plain text content of the paragraph."
},
"style": {
"type": "string",
"description": "Style name applied to the paragraph."
},
"alignment": {
"type": "string",
"description": "Text alignment (Left, Centered, Right, Justified).",
"enum": ["Left", "Centered", "Right", "Justified"]
},
"firstLineIndent": {
"type": "number",
"description": "First line indent value in points."
},
"lineSpacing": {
"type": "number",
"description": "Line spacing in points."
},
"outlineLevel": {
"type": "integer",
"description": "Outline level of the paragraph.",
"minimum": 1,
"maximum": 9
},
"isListItem": {
"type": "boolean",
"description": "Whether the paragraph is part of a list."
}
}
}