Reports for WinForms | ComponentOne
Working with C1PrintDocument / Word Index / Customizing the Index's Appearance
In This Topic
    Customizing the Index's Appearance
    In This Topic

    Customizing the Index's Appearance

    The following properties are provided to customize the way the generated index looks:

    Styles (see also Styles):

    • Style: specifies the style for the whole index (including headings, entries, and so on).
    • HeadingStyle: specifies the style used for letter headings (the heading is a letter preceding the group of entries starting with that letter). In the generated index, each heading (usually just the capitalized letter preceding the group of entries beginning with it) is represented by a separate render object (RenderText) to which this style is applied.
    • EntryStyles: an indexed property specifying the styles of entries at different levels. For instance, EntryStyles[0] (EntryStyles(0) in VB) specifies the style of entries at the top level, EntryStyles[1] (EntryStyles(1) in VB) specifies the style of sub-entries, and so on. (If the number of nested levels in the index is greater than the number of elements in the EntryStyles collection, the last style in the collection is used for nested styles.)
    • In the generated index, each entry (the term followed by the list of pages where it appears) is represented by a separate RenderParagraph object, to which the style determined by this property indexed by the entry's nesting level is applied. For instance, this style allows you to specify the minimum number of lines of an entry text before a page break can be inserted (via MinOrphanLines).
    • EntryStyle: this is a shortcut for the first (with index 0) element of the EntryStyles collection.
    • SeeAlsoStyle: allows you to specify the style of the "see also" text used to precede cross references between entries (see SeeAlso).
    • Style: allows you to override the style for a particular entry.
    • SeeAlsoStyle: allows you to override the style of the "see also" text for a particular entry.

    Other properties:

    See Also