Microsoft Word · Schema

ContentControl

Represents a content control in a Word document.

DocumentsMicrosoft 365OfficeProductivityWord Processing

Properties

Name Type Description
id string Unique identifier of the content control.
tag string Tag to identify the content control.
title string Title of the content control.
type string Type of content control.
text string Text content of the content control.
appearance string Visual appearance.
cannotDelete boolean Whether the content control can be deleted.
cannotEdit boolean Whether the content control can be edited.
View JSON Schema on GitHub

JSON Schema

javascript-api-content-control-schema.json Raw ↑
{
  "$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-content-control-schema.json",
  "title": "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."
    }
  }
}