Метод | Описание | |
---|---|---|
Spine ( ) : System | ||
Spine ( List |
||
Spine ( |
Creates a spine out of all the resources in the table of contents.
|
|
addResource ( |
Adds the given resource to the spine references and returns it.
|
|
addSpineReference ( |
Adds the given spineReference to the spine references and returns it.
|
|
createSpineReferences ( List |
||
findFirstResourceById ( string resourceId ) : int |
Finds the first resource that has the given resourceId. Null if not found.
|
|
getResource ( int index ) : |
Gets the resource at the given index. Null if not found.
|
|
getResourceIndex ( |
The position within the spine of the given resource.
|
|
getResourceIndex ( string resourceHref ) : int |
The first position within the spine of a resource with the given href.
|
|
getSpineReferences ( ) : List |
||
getTocResource ( ) : |
The resource containing the XML for the tableOfContents. When saving an epub file this resource needs to be in this place.
|
|
isEmpty ( ) : bool | ||
setSpineReferences ( List |
||
setTocResource ( |
As per the epub file format the spine officially maintains a reference to the Table of Contents. The epubwriter will look for it here first, followed by some clever tricks to find it elsewhere if not found. Put it here to be sure of the expected behaviours.
|
|
size ( ) : int |
The number of elements in the spine.
|
public Spine ( List |
||
spineReferences | List |
|
Результат | System |
public Spine ( |
||
tableOfContents | tableOfContents | |
Результат | System |
public addResource ( |
||
resource | ||
Результат |
public addSpineReference ( |
||
spineReference | ||
Результат |
public static createSpineReferences ( List |
||
resources | List |
|
Результат | List |
public findFirstResourceById ( string resourceId ) : int | ||
resourceId | string | |
Результат | int |
public getResource ( int index ) : |
||
index | int | |
Результат |
public getResourceIndex ( |
||
currentResource | ||
Результат | int |
public getResourceIndex ( string resourceHref ) : int | ||
resourceHref | string | |
Результат | int |
public setSpineReferences ( List |
||
spineReferences | List |
|
Результат | void |
public setTocResource ( |
||
tocResource | tocResource | |
Результат | void |