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

Represents a field that generates a table of contents in a document.

Definition

Constructors

C#
public TableOfContentsField()

Fields

Gets or sets the string representation of the alignment for the Table of Contents field.

C#
public static readonly FieldPropertyDefinition AlignmentStringProperty
Field Value:

A string value that specifies the alignment, which can include options such as "Left", "Center", and "Right".

Gets the name of the caption for the table of contents field.

C#
public static readonly FieldPropertyDefinition CaptionNameProperty
C#
public static readonly string DefaultAlignmentString
C#
public static readonly string ErrorString
C#
public static readonly string FieldType
C#
public static readonly string InvalidHeadingLevelRangeErrorString

Gets the outline levels within a specified range for the Table of Contents field.

C#
public static readonly FieldPropertyDefinition OutlineLevelsInRangeProperty

Represents a single entry in a table of contents.

C#
public static readonly FieldPropertyDefinition TCEntryProperty

Gets or sets the levels of a table of contents field that are included in the specified range.

C#
public static readonly FieldPropertyDefinition TCLevelsInRangeProperty

Properties

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

Gets or sets a valyue that indicated if the page numbers are aligned.

C#
[XamlSerializable]
public bool AlignPageNumbers { get; set; }
Property Value:

A bool> value that specifies if the page numbers are aligned.

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

Gets or sets a value indicating whether page numbers should be displayed in the table of contents.

C#
[XamlSerializable]
public bool DontShowPageNumbers { get; set; }
Property Value:

A boolean value that determines if page numbers are shown. True if page numbers are not shown; otherwise, false.

Gets the name of the field type.

C#
public override string FieldTypeName { get; }

Overrides: Field.FieldTypeName

Gets the collection of hyperlink entries associated with the Table of Contents field.

C#
[XamlSerializable]
public bool HyperlinkEntries { get; set; }

Gets or sets a value indicating whether captions should be included in the table of contents.

C#
[XamlSerializable]
public bool IncludeCaptions { get; set; }
Property Value:

true if captions should be included; otherwise, false.

Gets or sets a value indicating whether to include table of contents entries.

C#
[XamlSerializable]
public bool IncludeTCEntries { get; set; }
Property Value:

true if the table of contents entries should be included; otherwise, false.

C#
[XamlSerializable]
public string OutlineLevelsInRange { get; set; }
C#
[XamlSerializable]
public string TCEntry { get; set; }
C#
[XamlSerializable]
public string TCLevelsInRange { get; set; }

Gets or sets a value indicating whether to use outline levels for the specified range in the Table of Contents.

C#
[XamlSerializable]
public bool UseOutlineLevelsInRange { get; set; }

Gets or sets the outline levels for paragraphs used in the table of contents.

C#
[XamlSerializable]
public bool UseParagraphsOutlineLevels { get; set; }

Specifies whether to use the table of contents levels within a specified range.

C#
[XamlSerializable]
public bool UseTCLevelsInRange { get; set; }

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()