AddAuthor

ICommentAuthorCollection.AddAuthor 方法

在集合的末尾添加新的作者。

public ICommentAuthor AddAuthor(string name, string initials)
参数类型描述
nameString新作者的名字。
initialsString新作者的首字母。

返回值

新的 ICommentAuthor 对象。

异常

异常条件
PptxEditException如果已经添加了相同名字和首字母的作者,则抛出此异常。

另见