• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ModernComment

Represents a modern comment (PowerPoint 365) on a slide. Modern comments support threaded replies, resolution status, and parent-child relationships.

Maps to the OOXML p19:cm extension element.

Inheritance
object
ModernComment
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class ModernComment

Constructors

ModernComment()

Initializes a new instance of the ModernComment class with default values.

Declaration
public ModernComment()

ModernComment(string, CommentAuthor)

Initializes a new instance of the ModernComment class with the specified text and author.

Declaration
public ModernComment(string text, CommentAuthor author)
Parameters
Type Name Description
string text
CommentAuthor author

Properties

Author

Gets or sets the author of this comment.

Declaration
public CommentAuthor Author { get; set; }
Property Value
Type Description
CommentAuthor

DateTime

Gets or sets the date and time when this comment was created.

Declaration
public DateTime DateTime { get; set; }
Property Value
Type Description
DateTime

Left

Gets or sets the horizontal position of the comment anchor, in centimetres.

Declaration
public double Left { get; set; }
Property Value
Type Description
double

ParentComment

Gets or sets the parent comment of this comment in a reply thread. null for top-level comments.

Declaration
public ModernComment ParentComment { get; set; }
Property Value
Type Description
ModernComment

Replies

Gets the collection of reply comments attached to this comment.

Declaration
public IList<ModernComment> Replies { get; }
Property Value
Type Description
IList<ModernComment>

Status

Gets or sets the resolution status of this comment.

Declaration
public ModernCommentStatus Status { get; set; }
Property Value
Type Description
ModernCommentStatus

Text

Gets or sets the text body of the comment.

Declaration
public string Text { get; set; }
Property Value
Type Description
string

Top

Gets or sets the vertical position of the comment anchor, in centimetres.

Declaration
public double Top { get; set; }
Property Value
Type Description
double

Methods

AddReply(string, CommentAuthor)

Adds a reply to this comment and returns the newly created reply.

Declaration
public ModernComment AddReply(string text, CommentAuthor author)
Parameters
Type Name Description
string text
CommentAuthor author
Returns
Type Description
ModernComment

At(double, double)

Sets Left and Top and returns this comment to support fluent positioning.

Declaration
public ModernComment At(double left, double top)
Parameters
Type Name Description
double left
double top
Returns
Type Description
ModernComment
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX