Microsoft Word · JSON Structure

Javascript Api Content Control Structure

Represents a content control in a Word document.

Type: object Properties: 8
DocumentsMicrosoft 365OfficeProductivityWord Processing

ContentControl is a JSON Structure definition published by Microsoft Word, describing 8 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id tag title type text appearance cannotDelete cannotEdit

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/microsoft-word/refs/heads/main/json-structure/javascript-api-content-control-structure.json",
  "name": "ContentControl",
  "description": "Represents a content control in a Word document.",
  "type": "object",
  "properties": {
    "id": { "type": "string", "description": "Unique identifier of the content control." },
    "tag": { "type": "string", "description": "Tag to identify the content control." },
    "title": { "type": "string", "description": "Title of the content control." },
    "type": { "type": "string", "description": "Type of content control.", "enum": ["RichText", "PlainText", "Picture", "CheckBox", "DropDownList", "ComboBox", "DatePicker"] },
    "text": { "type": "string", "description": "Text content of the content control." },
    "appearance": { "type": "string", "description": "Visual appearance.", "enum": ["BoundingBox", "Tags", "Hidden"] },
    "cannotDelete": { "type": "boolean", "description": "Whether the content control can be deleted." },
    "cannotEdit": { "type": "boolean", "description": "Whether the content control can be edited." }
  }
}