GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    Comment Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Represents a single comment attached to a slide. It contains the text of the comment, its position on the slide, and attributes referring to its author and date.

    • C#
    • VB.NET
    public sealed class Comment
    Public NotInheritable Class Comment
    Inheritance:
    System.Object
    Comment
    Remarks

    A comment is a text note attached to a slide, with the primary purpose of allowing readers of a presentation to provide feedback to the presentation author.Each comment contains an unformatted text string and information about its author, and is attached to a particular location on a slide. Comments can be visible while editing the presentation, but do not appear when a slide show is given.The displaying application decides when to display comments and determines their visual appearance.

    Properties

    Author

    Gets the author of the comment.

    • C#
    • VB.NET
    public CommentAuthor Author { get; }
    Public ReadOnly Property Author As CommentAuthor
    Property Value
    CommentAuthor

    The author of the comment.

    LastModified

    Gets the date and time this comment was last modified.

    • C#
    • VB.NET
    public DateTime? LastModified { get; set; }
    Public Property LastModified As Date?
    Property Value
    System.Nullable<System.DateTime>

    The date and time this comment was last modified.

    Left

    Gets or sets the position of the left edge of the comment on a slide.

    • C#
    • VB.NET
    public Length Left { get; set; }
    Public Property Left As Length
    Property Value
    Length

    The position of the left edge of the comment on a slide.

    Text

    Gets or sets the content of a comment. This is the text with which the author has annotated the slide.

    • C#
    • VB.NET
    public string Text { get; set; }
    Public Property Text As String
    Property Value
    System.String

    The content of a comment.

    Exceptions
    System.ArgumentNullException

    Value is null.

    Top

    Gets or sets the position of the top edge of the comment on a slide.

    • C#
    • VB.NET
    public Length Top { get; set; }
    Public Property Top As Length
    Property Value
    Length

    The position of the top edge of the comment on a slide.

    Methods

    ToString()

    Returns a System.String that represents this Comment instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this Comment instance.

    Overrides
    System.Object.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    Examples

    Comments Example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.