Comment / CommentAuthor — Aspose.Slides FOSS for .NET API Reference

تدير هذه الفئات التعليقات على مستوى الشريحة ومؤلفيها. يمكن الوصول إلى مؤلفي التعليقات عبر Presentation.CommentAuthors والتعليقات لكل شريحة عبر Slide.GetSlideComments().

Enumerations: Aspose.Slides.Foss (net9.0)

using Aspose.Slides.Foss;

Enumerations

public class Comment : IComment

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
TextstringEnumerationsنص التعليق.
CreatedTimeDateTime?Enumerationsوقت إنشاء التعليق.
SlideISlideEnumerationsالشريحة التي ينتمي إليها التعليق.
AuthorICommentAuthorEnumerationsمؤلف التعليق.
PositionPointFEnumerationsالموقع على الشريحة.
ParentCommentIComment?Enumerationsالتعليق الأصلي للردود المتسلسلة.

Enumerations

EnumerationsEnumerations
Remove()إزالة هذا التعليق.

CommentAuthor

public class CommentAuthor : ICommentAuthor

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
NamestringEnumerationsاسم العرض للمؤلف.
InitialsstringEnumerationsالأحرف الأولى للمؤلف.
CommentsICommentCollectionEnumerationsجميع التعليقات لهذا المؤلف.

Enumerations

EnumerationsEnumerations
Remove()إزالة هذا المؤلف وتعليقاته.

CommentAuthorCollection

تم الوصول عبر Presentation.CommentAuthors.

public class CommentAuthorCollection : ICommentAuthorCollection

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
CountintEnumerationsعدد المؤلفين.

Enumerations

EnumerationsEnumerationsEnumerations
AddAuthor(string name, string initials)ICommentAuthorإضافة مؤلف تعليق جديد.
FindByName(string name)ICommentAuthor[]البحث عن المؤلفين بالاسم.
FindByNameAndInitials(string name, string initials)ICommentAuthor[]البحث بالاسم والأحرف الأولى.
RemoveAt(int index)voidإزالة المؤلف عند الفهرس المحدد.
Remove(ICommentAuthor author)voidإزالة مؤلف محدد.
Clear()voidإزالة جميع المؤلفين.
ToArray()ICommentAuthor[]إرجاع جميع المؤلفين كمصفوفة.

CommentCollection

تم الوصول إليه عبر CommentAuthor.Comments.

public class CommentCollection : ICommentCollection

Enumerations

EnumerationsEnumerationsEnumerationsEnumerations
CountintEnumerationsعدد التعليقات.

Enumerations

EnumerationsEnumerationsEnumerations
AddComment(string text, ISlide slide, PointF position, DateTime creationTime)ICommentإضافة تعليق إلى شريحة.
InsertComment(int index, string text, ISlide slide, PointF position, DateTime creationTime)ICommentإدراج تعليق في فهرس محدد.
FindCommentByIdx(int idx)ICommentالعثور على تعليق حسب الفهرس.
RemoveAt(int index)voidإزالة التعليق عند الفهرس.
Remove(IComment comment)voidإزالة تعليق محدد.
Clear()voidاحذف جميع التعليقات.
ToArray()IComment[]أرجع جميع التعليقات كمصفوفة.

أمثلة الاستخدام

إضافة تعليق

using Aspose.Slides.Foss;
using Aspose.Slides.Foss.Export;

using var prs = new Presentation();
var author = prs.CommentAuthors.AddAuthor("Reviewer", "R");
author.Comments.AddComment(
    "Looks good!",
    prs.Slides[0],
    new PointF(100, 100),
    DateTime.Now);

prs.Save("commented.pptx", SaveFormat.Pptx);

قراءة التعليقات

using Aspose.Slides.Foss;

using var prs = new Presentation("commented.pptx");
foreach (var author in prs.CommentAuthors)
{
    Console.WriteLine($"Author: {author.Name} ({author.Initials})");
    foreach (var comment in author.Comments)
    {
        Console.WriteLine($"  [{comment.Slide.SlideNumber}] {comment.Text}");
    }
}

انظر أيضًا

 العربية