Professional Documents
Culture Documents
Sample code
SnpManipulateTextFootnote::InsertFootnote
Sample code
SnpManipulateTextFootnote::DeleteAllStoryFootnotes
Solution
To determine whether an arbitrary text range is within the text story thread of a footnote, use the
ITextUtils::IsFootnote from the kUtilsBoss class. The API can be used to determine whether the range is
within a footnote and to get the footnote reference (kFootnoteReferenceBoss) object through the
parameter list.
Determining whether a page item can have text along its path
You can determine whether it is legal for a defined page item to have text along its path.
Solution
A page item can have text flowed along its path if it has one path with at least one segment with at least
two points (that is, it cannot be a compound path or a single point). The page item cannot be an inline
item.
Sample code
SnpManipulateTextOnPath::CanAddTextOnPath