Skip to main content

SdtLock

The lock type of the content control.

Type​

Enumeration

Values​

  • "unlocked"
  • "contentLocked"
  • "sdtContentLocked"
  • "sdtLocked"

Example​

Set the "sdtContentLocked" lock to the current inline text content control which means that the content cannot be edited and the container cannot be deleted.

// How do I lock a text content control?

// Lock a text content using "sdtContentLocked" lock type.

inlineLvlSdt.SetLock("sdtContentLocked");