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);

संबंधित देखें

 हिन्दी