C# Class Nexus.UI.Controls.XmlFoldingStrategy

Handles the folding of XML.
Inheritance: IFoldingStrategy
Afficher le fichier Open project: NexusMods/NexusModManager-4.5

Méthodes publiques

Méthode Description
GenerateFoldMarkers ( IDocument document, string fileName, object parseInformation ) : List

Generates the list of markers indicating where the XML should be folded.

Méthodes protégées

Méthode Description
AddFold ( IDocument p_docDocument, string p_strTagName, TextLocation p_tlcStart, TextLocation p_tlcEnd ) : void

Adds a fold for the specified tag spanning the specified lines.

This method is called by the XmlParser whenever a complete tag is found.

Method Details

AddFold() protected méthode

Adds a fold for the specified tag spanning the specified lines.
This method is called by the XmlParser whenever a complete tag is found.
protected AddFold ( IDocument p_docDocument, string p_strTagName, TextLocation p_tlcStart, TextLocation p_tlcEnd ) : void
p_docDocument IDocument The document in which to make the fold.
p_strTagName string The name of the tag being folded.
p_tlcStart TextLocation The location of the start of the tag.
p_tlcEnd TextLocation The location of the closing tag.
Résultat void

GenerateFoldMarkers() public méthode

Generates the list of markers indicating where the XML should be folded.
public GenerateFoldMarkers ( IDocument document, string fileName, object parseInformation ) : List
document IDocument The document to fold.
fileName string The file name of the document to fold.
parseInformation object User-supplied parse information.
Résultat List