---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/Comment
---

# Comment

## Overview

`Comment` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IComment`.

Represents a comment on a presentation slide.

This class provides 10 methods for working with Comment objects in Java programs.
Available methods include: `Comment`, `getAuthor`, `getCreatedTime`, `getParentComment`, `getPosition`, `getSlide`, `getText`, `remove`, `setParentComment`, `setText`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `author`, `createdTime`, `parentComment`, `position`, `slide`, `text`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `text` | `String` | Read | Gets the text. |
| `author` | `ICommentAuthor` | Read | Gets the author. |
| `slide` | `ISlide` | Read | Gets the slide. |
| `position` | `PointF` | Read | Gets the position. |
| `createdTime` | `LocalDateTime` | Read | Gets the created time. |
| `parentComment` | `Optional` | Read | Gets the parent comment. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Comment(text: String, author: ICommentAuthor, slide: ISlide, position: PointF, createdTime: LocalDateTime)` | Creates a new comment. |
| `getText()` → `String` | Returns the text. |
| `setText(value: String)` | Sets the text value. |
| `getAuthor()` → `ICommentAuthor` | Returns the author. |
| `getSlide()` → `ISlide` | Returns the slide. |
| `getPosition()` → `PointF` | Returns the position. |
| `getCreatedTime()` → `LocalDateTime` | Returns the created time. |
| `getParentComment()` → `Optional` | Returns the parent comment. |
| `setParentComment(parent: IComment)` | Sets the parent comment value. |
| `remove()` | Deletes the comment from its slide and any comment hierarchy |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)