[]
        
(Showing Draft Content)

C1.C1Preview.IndexEntry

IndexEntry Class

Represents an entry in a word index of a C1PrintDocument. Top-level entries of a RenderIndex (represented by instances of this class) are contained in the Entries collection on the index object. Nested entries are contained in the parent entry's Children The current entry's occurrences in the document are represented by instances of the IndexEntryOccurrence class, and are contained in the Occurrences collection of the entry.

Inheritance
IndexEntry
Implements
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
[C1ClassSerialization(true)]
public class IndexEntry : IStyleOwner, ICloneable

Constructors

Name Description
IndexEntry()

Initializes a new instance of the IndexEntry class.

IndexEntry(string)

Initializes a new instance of the IndexEntry class.

IndexEntry(string, params C1LinkTarget[])

Initializes a new instance of the IndexEntry class.

IndexEntry(string, params IndexEntryOccurrence[])

Initializes a new instance of the IndexEntry class.

Properties

Name Description
Caption

Gets or sets the string that will represent the current index entry in the generated index.

Children

Gets the IndexEntryCollection containing the nested index entries, i.e. sub-entries of the current index entry.

Document

Gets the C1PrintDocument object containing the current index entry.

HasChildren

Gets a value indicating whether the Children collection has been created and contains one or more elements.

HasOccurrences

Gets a value indicating whether the Occurrences collection has been created and contains one or more elements.

HasSeeAlso

Gets a value indicating whether the SeeAlso collection has been created and contains one or more elements.

Level

Gets the level of the current index entry. The top-level entries' level is 0, sub-entries' level is 1, and so on. If the current index entry has not been added to a RenderIndex object or to a nested entry of such object, this property returns -1. or to an IndexEntry

Occurrences

Gets the List<T> of IndexEntryOccurrence objects representing occurrences of the current index entry in the document. In the generated index, each occurrence is replaced by the page number, which is a hyperlink to the occurrence's location in the document. (Consecutive page numbers are collapsed to ranges.)

RenderIndex

Gets the RenderIndex object containing the current index entry at some level, either at a top-level entry or a nested entry.

SeeAlso

Gets the List<T> of IndexEntry objects related to the current index entry. In the generated index, those entries will be listed as "See also" cross-references from the current to other entries.

SeeAlsoStyle

Gets the Style for the current index entry's "See also" references (see SeeAlso).

Style

Gets the Style for the current index entry.

Methods

Name Description
AssignFrom(IndexEntry)

Assigns (copies) properties from another IndexEntry to the current object.

Clone()

Creates a copy of the current IndexEntry object.

See Also