Table of Contents

Class ContentControlEditException

Namespace
DocWright.Dom.ContentControls
Assembly
DocWright.Dom.dll

Thrown when a content control edit was refused because it could not be applied with certainty, or because the property does not apply to the control's kind.

The refusal is the feature. A content control's typed properties are a view over the preserved w:sdtPr, and that island is what the writer emits; an edit the rewriter cannot place exactly would leave the typed view and the emitted document disagreeing. Phase 15 met the same choice with text boxes and refused both edits together rather than applying one, on the grounds that a refusal is visible and a silent disagreement is not. When this is thrown, neither the island nor the model has changed.

public sealed class ContentControlEditException : DocWrightException, ISerializable
Inheritance
ContentControlEditException
Implements
Inherited Members

Constructors

ContentControlEditException()

Initializes the exception.

ContentControlEditException(string)

Initializes the exception with a message.

ContentControlEditException(string, Exception?)

Initializes the exception with a message and an inner exception.