0
TOCFormatEntryInfo does not give fParaFormatStyle when entry style is selected as same style.
Participant
,
/t5/indesign-discussions/tocformatentryinfo-does-not-give-fparaformatstyle-when-entry-style-is-selected-as-same-style/td-p/14713953
Jul 01, 2024
Jul 01, 2024
Copy link to clipboard
Copied
I have created a TOC style with the entry style is selected as Same style. When I try to access TOCFormatEntryInfo fParaFormatStyle, it returns 0.
When the entry style is set to a different paragraph style, it returns the fParaFormatStyle.
Is there a way to obtain the UID of the entry style when it is set as the same style?
InterfacePtr<ITOCStyleInfo> theTOCStyle(db, tocStyleID, UseDefaultIID());
BREAK_IF_NIL(theTOCStyle);
const FormatEntriesInfo& entryMap = theTOCStyle->GetTOCEntryMap();
for (int i = 0; i < entryMap.size(); ++i)
{
TOCFormatEntryInfo tocFormatEntryInfo = entryMap[i].Value();
paraStyleID = tocFormatEntryInfo.fParaFormatStyle;
}
TOPICS
How to
,
SDK
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

