Search Results for

    Show / Hide Table of Contents

    Interface ICommentProperties

    Thread of comments

    Inherited Members
    System.ICloneable.Clone()
    Namespace: Sdl.FileTypeSupport.Framework.NativeApi
    Assembly: Sdl.FileTypeSupport.Framework.Core.dll
    Syntax
    public interface ICommentProperties : ICloneable
    Remarks

    This interface was designed to correspond to the commenting features available in TTX and ITD files.

    Properties

    Comments

    Iterator for accessing comments sequentially

    Declaration
    IEnumerable<IComment> Comments { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IComment>

    Count

    The number of comments in this thread

    Declaration
    int Count { get; }
    Property Value
    Type Description
    System.Int32

    Xml

    An XML string that is meant for serializing the comment thread.

    Declaration
    string Xml { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The XML format of this string is the same as the comments XML format used in ITD and TTX files.

    Setting this property changes the entire content of the comment properties object.

    Methods

    Add(IComment)

    Appends a comment to this thread

    Declaration
    void Add(IComment comment)
    Parameters
    Type Name Description
    IComment comment

    AddComments(ICommentProperties)

    Appends all comments from another thread to this one

    Declaration
    void AddComments(ICommentProperties comments)
    Parameters
    Type Name Description
    ICommentProperties comments

    Delete(IComment)

    Removes a comment from the collection.

    Declaration
    void Delete(IComment comment)
    Parameters
    Type Name Description
    IComment comment

    GetItem(Int32)

    Gets the comment with the specified index. The index is 0-based.

    Declaration
    IComment GetItem(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    IComment

    On this page

    • Properties
      • Comments
      • Count
      • Xml
    • Methods
      • Add(IComment)
      • AddComments(ICommentProperties)
      • Delete(IComment)
      • GetItem(Int32)
    Back to top Generated by DocFX