public addChildSection ( |
||
childSection | ||
return |
/// <summary> /// Adds the resource to the table of contents of the book as a child section of /// the given parentSection /// </summary> /// <param name="parentSection"></param> /// <param name="sectionTitle"></param> /// <param name="resource"></param> public TOCReference addSection(TOCReference parentSection, string sectionTitle, Resource resource) { getResources().add(resource); if (spine.findFirstResourceById(resource.getId()) < 0) { spine.addSpineReference(new SpineReference(resource)); } return parentSection.addChildSection(new TOCReference(sectionTitle, resource)); }
/// <summary> /// Adds the resource to the table of contents of the book as a child section of /// the given parentSection /// </summary> /// <param name="parentSection"></param> /// <param name="sectionTitle"></param> /// <param name="resource"></param> public TOCReference addSection(TOCReference parentSection, string sectionTitle, Resource resource) { getResources().add(resource); if (spine.findFirstResourceById(resource.getId()) < 0) { spine.addSpineReference(new SpineReference(resource)); } return parentSection.addChildSection(new TOCReference(sectionTitle, resource)); }