New to Telerik UI for WPFStart a free 30-day trial

TCField

Class

Represents a field in a document model that can contain dynamic values.

Definition

Constructors

C#
public TCField()

Fields

Represents the text entry of a table of contents field.

C#
public static readonly FieldPropertyDefinition EntryTextProperty
C#
public static readonly string FieldType

Gets or sets the level of the table of contents field.

C#
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.

Gets the type identifier of the TCField.

C#
public static readonly FieldPropertyDefinition TypeIdentifierProperty

Properties

Represents the text entry of a table of contents field.

C#
[XamlSerializable]
public string EntryText { get; set; }

Gets the name of the field type.

C#
public override string FieldTypeName { get; }

Overrides: Field.FieldTypeName

C#
[XamlSerializable]
public string TCLevel { get; set; }

Gets the type identifier of the TCField.

C#
[XamlSerializable]
public string TypeIdentifier { get; set; }

Gets or sets the level of the table of contents (TOC) field.

C#
[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

Builds the field-specific parts of the code fragment, using the current CodeBuilder.

C#
protected override void BuildCodeOverride()

Overrides: CodeBasedField.BuildCodeOverride()

Copies all properties from another field of the same type.

C#
public override void CopyPropertiesFrom(Field fromField)
Parameters:fromFieldField

The other field, which has to be of the same type as the current instance.

Overrides: CodeBasedField.CopyPropertiesFrom(Field)

Copies the field-specific properties from a FieldCodeExpression.

C#
protected override void CopyPropertiesFromCodeExpression(FieldCodeExpression fieldCodeExpression)
Parameters:fieldCodeExpressionFieldCodeExpression

The field code expression.

Overrides: CodeBasedField.CopyPropertiesFromCodeExpression(FieldCodeExpression)

Creates a new instance of the current field class.

C#
public override Field CreateInstance()
Returns:

Field

The new field instance.

Overrides: Field.CreateInstance()

Builds the result fragment of the field.

C#
protected override DocumentFragment GetResultFragment()
Returns:

DocumentFragment

The result fragment.

Overrides: Field.GetResultFragment()