UNPKG

asposewordscloud

Version:
57 lines (56 loc) 1.76 kB
import { AttributeInfo } from '../internal/attributeInfo'; import { CommentLink } from './commentLink'; import { DocumentPosition } from './documentPosition'; import { StoryChildNodes } from './storyChildNodes'; export declare const importsMapComment: { CommentLink: typeof CommentLink; DocumentPosition: typeof DocumentPosition; StoryChildNodes: typeof StoryChildNodes; }; /** * DTO container with a comment. */ export declare class Comment extends CommentLink { /** * Attribute type map */ static attributeTypeMap: Array<AttributeInfo>; /** * Returns attribute type map */ static getAttributeTypeMap(): AttributeInfo[]; /** * Gets or sets the link to comment range start node. */ rangeStart: DocumentPosition; /** * Gets or sets the link to comment range end node. */ rangeEnd: DocumentPosition; /** * Gets or sets the author name for a comment. * Cannot be null.Default is empty string. */ author: string; /** * Gets or sets the initials of the user associated with a specific comment. * Cannot be null.Default is empty string. */ initial: string; /** * Gets or sets the date and time that the comment was made. */ dateTime: Date; /** * Gets or sets text of the comment. * This method allows to quickly set text of a comment from a string. The string can contain paragraph breaks, this will create paragraphs of text in the comment accordingly. */ text: string; /** * Gets or sets the content of the comment. */ content: StoryChildNodes; constructor(init?: Partial<Comment>); collectFilesContent(_resultFilesContent: Array<any>): void; validate(): void; }