ClassTCField
Represents a field in a document model that can contain dynamic values.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TCField : CodeBasedField, ISupportInitialize
Inheritance: objectFieldCodeBasedFieldTCField
Implements:
Inherited Members
Constructors
TCField()
Declaration
public TCField()
Fields
EntryTextProperty
Represents the text entry of a table of contents field.
Declaration
public static readonly FieldPropertyDefinition EntryTextProperty
Field Value
TCLevelProperty
Gets or sets the level of the table of contents field.
Declaration
public static readonly FieldPropertyDefinition TCLevelProperty
Field Value
An integer representing the level of the table of contents. The level determines the hierarchy of the entry in the table of contents.
TypeIdentifierProperty
Gets the type identifier of the TCField.
Declaration
public static readonly FieldPropertyDefinition TypeIdentifierProperty
Field Value
Properties
EntryText
Represents the text entry of a table of contents field.
Declaration
[XamlSerializable]
public string EntryText { get; set; }
Property Value
FieldTypeName
Gets the name of the field type.
Declaration
public override string FieldTypeName { get; }
Property Value
Overrides
TCLevel
Declaration
[XamlSerializable]
public string TCLevel { get; set; }
Property Value
TypeIdentifier
Gets the type identifier of the TCField.
Declaration
[XamlSerializable]
public string TypeIdentifier { get; set; }
Property Value
UseTCLevel
Gets or sets the level of the table of contents (TOC) field.
Declaration
[XamlSerializable]
public bool UseTCLevel { get; set; }
Property Value
The level of the table of contents field. This value determines the hierarchy of the TOC entry.
Methods
BuildCodeOverride()
Builds the field-specific parts of the code fragment, using the current CodeBuilder.
Declaration
protected override void BuildCodeOverride()
Overrides
CopyPropertiesFrom(Field)
Copies all properties from another field of the same type.
Declaration
public override void CopyPropertiesFrom(Field fromField)
Parameters
fromField
The other field, which has to be of the same type as the current instance.
Overrides
CopyPropertiesFromCodeExpression(FieldCodeExpression)
Copies the field-specific properties from a FieldCodeExpression.
Declaration
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters
fieldCodeExpression
The field code expression.
Overrides
CreateInstance()
Creates a new instance of the current field class.
Declaration
public override Field CreateInstance()
Returns
The new field instance.
Overrides
GetResultFragment()
Builds the result fragment of the field.
Declaration
protected override DocumentFragment GetResultFragment()
Returns
The result fragment.
Overrides