IModernComment
IModernComment 接口
表示幻灯片上的注释。
public interface IModernComment : IComment
属性
| 名称 | 描述 |
|---|---|
| AsIComment { get; } | 允许获取基础 IComment 接口。只读 IComment。 |
| Shape { get; } | 返回与该注释关联的形状。只读 IShape。 |
| Status { get; set; } | 返回或设置该注释的状态。可读写 ModernCommentStatus。 |
| TextSelectionLength { get; set; } | 如果注释关联到 AutoShape,则返回或设置文本框中选中文本的长度。可读写 Int32。 |
| TextSelectionStart { get; set; } | 如果注释关联到 AutoShape,则返回或设置文本框中选中文本的起始位置。可读写 Int32。 |
示例
[C#]
using (Presentation pres = new Presentation())
{
ICommentAuthor newAuthor = pres.CommentAuthors.AddAuthor("Some Author", "SA");
IModernComment modernComment = newAuthor.Comments.AddModernComment("This is modern comment", pres.Slides[0], null, new PointF(100, 100), DateTime.Now);
pres.Save(outPptxFileName, SaveFormat.Pptx);
}
另见
- 接口 IComment
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides