Click or drag to resize

BookmarksNavigator ReplaceBookmarkContent Method (TextBodyPart, Boolean)

Replaces the bookmark content with specified TextBodyPart object, with an option to preserve the formatting of the first paragraph in the source content.

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public void ReplaceBookmarkContent(
	TextBodyPart bodyPart,
	bool isKeepSourceFirstParaFormat
)

Parameters

bodyPart
Type: Spire.Doc.Documents TextBodyPart
The body part.
isKeepSourceFirstParaFormat
Type: System Boolean
See Also