ModernComment
内容
[
隐藏
]ModernComment class
表示幻灯片上的注释。
public sealed class ModernComment : Comment, IModernComment
Properties
| 名称 | 描述 |
|---|---|
| Author { get; } | 返回注释的作者。只读 ICommentAuthor。 |
| CreatedTime { get; set; } | 返回或设置注释创建的时间。将此属性设置为 MinValue 表示未设置注释时间。可读写 DateTime。 |
| ParentComment { get; set; } | 获取或设置父注释。可读写 IComment。 |
| Position { get; set; } | 返回或设置注释在幻灯片上的位置。可读写 PointF。 |
| Shape { get; } | 返回与注释相关联的形状。只读 IShape。 |
| Slide { get; } | 返回或设置注释的父幻灯片。只读 ISlide。 |
| Status { get; set; } | 获取或设置注释的状态。可读写 ModernCommentStatus。 |
| Text { get; set; } | 返回或设置幻灯片注释的纯文本。可读写 String。 |
| TextSelectionLength { get; set; } | 获取或设置与 AutoShape 关联的文本框中的文本选择长度。可读写 Int32。 |
| TextSelectionStart { get; set; } | 获取或设置与 AutoShape 关联的文本框中文本选择的起始位置。可读写 Int32。 |
Methods
| 名称 | 描述 |
|---|---|
| Remove() | 从父集合中删除注释及其所有回复。 |
Examples
[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);
}
See Also
- class Comment
- interface IModernComment
- namespace Aspose.Slides
- assembly Aspose.Slides