Insert a navPoint in the NCX navMap for a new document. The new navPoint replaces the given navPoint in the playOrder and the displaced navPoint and all following navPoints are renumbered (i.e. their playOrders are incremented). The new navPoint has an id set to the given value, its navLabel/text value i.e. the text displayed to the user to identify the document is set to the value of the text parameter. The 'src' attribute of the content element is set to the path held in the src parameter.

Namespace:  net.hazelhurst.epub
Assembly:  ePubLib (in ePubLib.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public void InsertBefore(
	string id,
	string newId,
	string text,
	string src
)
Visual Basic (Declaration)
Public Sub InsertBefore ( _
	id As String, _
	newId As String, _
	text As String, _
	src As String _
)
Visual C++
public:
void InsertBefore(
	String^ id, 
	String^ newId, 
	String^ text, 
	String^ src
)

Parameters

id
Type: System..::.String
The id attribute of the navPoint which is to be moved down the reading order. The new navPoint will replace this navPoint.
newId
Type: System..::.String
The id attribute of the new navPoint.
text
Type: System..::.String
The navLabel/text value that will be held for the new navPoint. This text is displayed to the reader as a line in the table of contents.
src
Type: System..::.String
The value to be applied to the 'src' attribute of the new navPoint. This gives the name of the content document to which the navPoint refers.

See Also