Skip to content

MbBook

代表一个已加入 MarginNote 的文档(如 PDF、EPUB)。通过 Database.getDocumentByIdDatabase.allDocuments、或 DocumentController.document 获取。

属性类型说明
docMd5string文档唯一 MD5(getter 为 md5real)。
docTitlestring文档标题(getter 为 bookTitle)。
pathFilestring文档在 MarginNote 存储中的相对路径。
fullPathFileNamestring文档的完整路径(若环境可用)。
currentTopicIdstring当前所属笔记本 ID(getter 为 currenttopicid)。
lastVisitNSDate最后访问时间。
pageCountnumber总页数。
方法参数返回值说明
textContentsForPageNo(pageNo)pageNo: numberNSArray获取指定页的文本内容(实现/结构依赖运行时)。
tocAll()NSArray获取文档目录(Table of Contents)。

当前运行时未额外暴露 MbBook 的类成员。

头文件 API 清单

正在加载…

协议:,来源: