C# Class Nexus.UI.Controls.XmlFoldingStrategy

Handles the folding of XML.
Inheritance: IFoldingStrategy
Show file Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
GenerateFoldMarkers ( IDocument document, string fileName, object parseInformation ) : List

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

Protected Methods

Method 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 method

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.
return void

GenerateFoldMarkers() public method

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.
return List