Comments

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

ColladaSaveOptions Comment ו CommentAuthor מחלקות מייצגות תגובות שקופיות ואת המחברים שלהן. הן מממשות IComment ו ICommentAuthor בהתאמה.

ColladaSaveOptions: org.aspose.slides.foss

import org.aspose.slides.foss.*;

ColladaSaveOptions

public class Comment implements IComment

ColladaSaveOptions

ColladaSaveOptionsColladaSaveOptions
Comment(String text, ICommentAuthor author, ISlide slide, PointF position, LocalDateTime createdTime)צור תגובה חדשה.

ColladaSaveOptions

ColladaSaveOptionsColladaSaveOptionsColladaSaveOptionsColladaSaveOptions
getText() / setText(String)Stringקריאה/כתיבהטקסט התגובה.
getAuthor()ICommentAuthorColladaSaveOptionsמחבר התגובה.
getSlide()ISlideColladaSaveOptionsהשקופית שעליה נמצאת התגובה.
getPosition()PointFColladaSaveOptionsמיקום על השקופית.
getCreatedTime()LocalDateTimeColladaSaveOptionsחותמת זמן של יצירה.
getParentComment()Optional<IComment>ColladaSaveOptionsתגובה הורה לתשובות.
setParentComment(IComment)voidColladaSaveOptionsהגדר תגובה הורה.

ColladaSaveOptions

ColladaSaveOptionsColladaSaveOptionsColladaSaveOptions
remove()voidהסר תגובה זו.

CommentAuthor

public class CommentAuthor implements ICommentAuthor

ColladaSaveOptions

ColladaSaveOptionsColladaSaveOptions
CommentAuthor(String name, String initials, int id)צור מחבר תגובה חדש.

ColladaSaveOptions

ColladaSaveOptionsColladaSaveOptionsColladaSaveOptions
getName()Stringשם המחבר.
getInitials()Stringראשי תיבות של המחבר.
getId()intמזהה המחבר.
getComments()ICommentCollectionהערות של המחבר הזה.

דוגמאות שימוש

הוסף תגובה לשקופית

import org.aspose.slides.foss.*;
import java.time.LocalDateTime;

Presentation prs = new Presentation();
ICommentAuthorCollection authors = prs.getCommentAuthors();
ICommentAuthor author = authors.addAuthor("John", "J");

ISlide slide = prs.getSlides().get(0);
slide.getSlideComments(null); // read existing comments

// Add comment via the author's comment collection
author.getComments().addComment(
    "Review this slide", slide, new PointF(100, 100), LocalDateTime.now());

prs.save("commented.pptx", SaveFormat.PPTX);

ראה גם

 עברית