Class ContentControl
Represents a structured document tag (content control).
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class ContentControl
Properties
Alias
Gets or sets the Word alias displayed as the control title.
Declaration
public string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Id
Gets or sets the numeric control identifier.
Declaration
public decimal Id { get; set; }
Property Value
| Type | Description |
|---|---|
| decimal |
Properties
Gets the editable properties of this control.
Declaration
public ContentControlProperties Properties { get; }
Property Value
| Type | Description |
|---|---|
| ContentControlProperties |
Tag
Gets or sets the control tag.
Declaration
public string Tag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Title
Gets or sets the control title.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
Gets or sets the structured document tag type.
Declaration
public ContentControlType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentControlType |
XmlMapping
Gets or sets the custom XML mapping for this control.
Declaration
public XmlMapping XmlMapping { get; set; }
Property Value
| Type | Description |
|---|---|
| XmlMapping |
Methods
Update()
Updates the control text from its mapped custom XML element.
Declaration
public bool Update()
Returns
| Type | Description |
|---|---|
| bool | true when a mapped value was applied. |
UpdateSource()
Writes the current control text to its mapped custom XML element.
Declaration
public bool UpdateSource()
Returns
| Type | Description |
|---|---|
| bool | true when a mapped value was updated. |