C# 클래스 ICSharpCode.AvalonEdit.Folding.XmlFoldingStrategy

Determines folds for an xml string in the editor.
파일 보기 프로젝트 열기: kjk/kjkpub 1 사용 예제들

공개 메소드들

메소드 설명
CreateNewFoldings ( TextDocument document, XmlReader reader, int &firstErrorOffset ) : IEnumerable

Create NewFoldings for the specified document.

CreateNewFoldings ( TextDocument document, int &firstErrorOffset ) : IEnumerable

Create NewFoldings for the specified document.

비공개 메소드들

메소드 설명
CreateCommentFold ( TextDocument document, List foldMarkers, XmlReader reader ) : void

Creates a comment fold if the comment spans more than one line.

The text displayed when the comment is folded is the first line of the comment.

CreateElementFold ( TextDocument document, List foldMarkers, XmlReader reader, XmlFoldStart foldStart ) : void

Create an element fold if the start and end tag are on different lines.

CreateElementFoldStart ( TextDocument document, XmlReader reader ) : XmlFoldStart

Creates an XmlFoldStart for the start tag of an element.

GetAttributeFoldText ( XmlReader reader ) : string

Gets the element's attributes as a string on one line that will be displayed when the element is folded.

Currently this puts all attributes from an element on the same line of the start tag. It does not cater for elements where attributes are not on the same line as the start tag.

GetOffset ( TextDocument document, XmlReader reader ) : int
XmlEncodeAttributeValue ( string attributeValue, char quoteChar ) : string

Xml encode the attribute string since the string returned from the XmlTextReader is the plain unencoded string and .NET does not provide us with an xml encode method.

메소드 상세

CreateNewFoldings() 공개 메소드

Create NewFoldings for the specified document.
public CreateNewFoldings ( TextDocument document, XmlReader reader, int &firstErrorOffset ) : IEnumerable
document ICSharpCode.AvalonEdit.Document.TextDocument
reader System.Xml.XmlReader
firstErrorOffset int
리턴 IEnumerable

CreateNewFoldings() 공개 메소드

Create NewFoldings for the specified document.
public CreateNewFoldings ( TextDocument document, int &firstErrorOffset ) : IEnumerable
document ICSharpCode.AvalonEdit.Document.TextDocument
firstErrorOffset int
리턴 IEnumerable