C# Class Importer.RtfDeltaImporter.Document

A document, consisting of a set of paragraphs
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Méthodes publiques

Свойство Type Description
Paragraphs Paragraph>.Dictionary

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddParagraph() public méthode

Adds a paragraph in the document
public AddParagraph ( Paragraph paragraph ) : void
paragraph Paragraph
Résultat void

Document() public méthode

Constructor
public Document ( string filePath ) : System.Collections.Generic
filePath string
Résultat System.Collections.Generic

UpdateState() public méthode

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
Résultat void

Property Details

Paragraphs public_oe property

Stores the paragraphs found in the document
public Dictionary Paragraphs
Résultat Paragraph>.Dictionary