C# 클래스 Nexus.UI.Controls.XmlEditor

An XML text editor.
This editor provides highlighting, code copmletion, autoindenting, and code folding.
상속: ICSharpCode.TextEditor.TextEditorControl
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

공개 메소드들

메소드 설명
ShowCodeCompletionWindow ( char p_chrChar ) : void

Displays the code completion window.

ValidateOnTimer ( object sender, EventArgs e ) : void

Validates the XML against the schema, after a given period has elapsed.

This method is called by a timer after a set span after the text in the editor was last changed.

ValidateXml ( ) : bool

Validates the XML against the schema.

XmlEditor ( ) : System

The default constructor.

m_cdpXmlCompletionProvider_GotAutoCompleteList ( object sender, AutoCompleteListEventArgs e ) : void

Handles the XmlCompletionProvider.GotAutoCompleteList event of the completion provider.

This raises the editor's GotAutoCompleteList event.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes of resources used by the editor.

This makes sure that the code completion windows is closed.

HighlightMalformedTag ( IDocument p_docDocument, string p_strTagName, TextLocation p_tlcStart, TextLocation p_tlcEnd ) : void

Highlights any malformed XML tags that are found.

OnTextChanged ( EventArgs e ) : void

Starts the timers to update the code folds and validate the XML.

비공개 메소드들

메소드 설명
DisposeCodeCompletionWindow ( object sender, EventArgs e ) : void

Disposes of the code completion window when it closes.

HighlightValidationErrors ( object sender, ValidationEventArgs e ) : void

Highlights any XML validation errors that are found.

HighlightValidationErrors ( string p_strMessage, TextLocation p_tlcStart ) : void

Highlights any XML validation errors that are found.

TextArea_KeyEventHandler ( char p_chrChar ) : bool

Called whenever a character is about to be added to the document.

UpdateFolds ( object sender, EventArgs e ) : void

Updates the code folds.

This method is called by a timer after a set span after the text in the editor was last changed.

메소드 상세

Dispose() 보호된 메소드

Disposes of resources used by the editor.
This makes sure that the code completion windows is closed.
protected Dispose ( bool disposing ) : void
disposing bool Whether or not the object is being disposed.
리턴 void

HighlightMalformedTag() 보호된 메소드

Highlights any malformed XML tags that are found.
protected HighlightMalformedTag ( IDocument p_docDocument, string p_strTagName, TextLocation p_tlcStart, TextLocation p_tlcEnd ) : void
p_docDocument IDocument The document being validated.
p_strTagName string The name of the malformed tag.
p_tlcStart TextLocation The start of the malformed tag.
p_tlcEnd TextLocation The end of the malformed tag.
리턴 void

OnTextChanged() 보호된 메소드

Starts the timers to update the code folds and validate the XML.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
리턴 void

ShowCodeCompletionWindow() 공개 메소드

Displays the code completion window.
public ShowCodeCompletionWindow ( char p_chrChar ) : void
p_chrChar char The character that was typed that caused the code window to display.
리턴 void

ValidateOnTimer() 공개 메소드

Validates the XML against the schema, after a given period has elapsed.
This method is called by a timer after a set span after the text in the editor was last changed.
public ValidateOnTimer ( object sender, EventArgs e ) : void
sender object The object that triggered the event.
e System.EventArgs An describing the event arguments.
리턴 void

ValidateXml() 공개 메소드

Validates the XML against the schema.
public ValidateXml ( ) : bool
리턴 bool

XmlEditor() 공개 메소드

The default constructor.
public XmlEditor ( ) : System
리턴 System

m_cdpXmlCompletionProvider_GotAutoCompleteList() 공개 메소드

Handles the XmlCompletionProvider.GotAutoCompleteList event of the completion provider.
This raises the editor's GotAutoCompleteList event.
public m_cdpXmlCompletionProvider_GotAutoCompleteList ( object sender, AutoCompleteListEventArgs e ) : void
sender object The object that raised the event.
e AutoCompleteListEventArgs An describing the event arguments.
리턴 void