C# Класс Importer.RtfDeltaImporter.Document

A document, consisting of a set of paragraphs
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Paragraphs Paragraph>.Dictionary

Открытые методы

Метод Описание
AddParagraph ( Paragraph paragraph ) : void

Adds a paragraph in the document

Document ( string filePath ) : System.Collections.Generic

Constructor

UpdateState ( Document original ) : void

Updates the state of the paragraphs located in source according to the original content, located in original

Приватные методы

Метод Описание
FindParagraph ( string id ) : Paragraph

Finds a paragraph whose Id corresponds to the Id provided

IsChanged ( Paragraph p ) : bool

Paragraph contents has changed

IsDeleted ( Paragraph p ) : bool

Paragraph has been deleted

IsInserted ( Paragraph p ) : bool

Paragraph has been inserted

IsMoved ( Paragraph p ) : bool

Paragraph has been moved

findMatching ( ParagraphCondition condition ) : List

Find all paragraphs which match the predicate condition

Описание методов

AddParagraph() публичный Метод

Adds a paragraph in the document
public AddParagraph ( Paragraph paragraph ) : void
paragraph Paragraph
Результат void

Document() публичный Метод

Constructor
public Document ( string filePath ) : System.Collections.Generic
filePath string
Результат System.Collections.Generic

UpdateState() публичный Метод

Updates the state of the paragraphs located in source according to the original content, located in original
public UpdateState ( Document original ) : void
original Document The original file content
Результат void

Описание свойств

Paragraphs публичное свойство

Stores the paragraphs found in the document
public Dictionary Paragraphs
Результат Paragraph>.Dictionary