C# 클래스 ICSharpCode.TextEditor.Document.DefaultFormattingStrategy

This class handles the auto and smart indenting in the textbuffer while you type.
상속: IFormattingStrategy
파일 보기 프로젝트 열기: jumpinjackie/fdotoolbox 1 사용 예제들

공개 메소드들

메소드 설명
DefaultFormattingStrategy ( ) : System

Creates a new instance off DefaultFormattingStrategy

FormatLine ( TextArea textArea, int line, int cursorOffset, char ch ) : int

This function formats a specific line after ch is pressed.

IndentLine ( TextArea textArea, int line ) : int

This function sets the indentation level in a specific line

IndentLines ( TextArea textArea, int begin, int end ) : void

This function sets the indentlevel in a range of lines.

SearchBracketBackward ( IDocument document, int offset, char openBracket, char closingBracket ) : int
SearchBracketForward ( IDocument document, int offset, char openBracket, char closingBracket ) : int

보호된 메소드들

메소드 설명
AutoIndentLine ( TextArea textArea, int lineNumber ) : int

Could be overwritten to define more complex indenting.

GetIndentation ( TextArea textArea, int lineNumber ) : string

returns the whitespaces which are before a non white space character in the line line as a string.

SmartIndentLine ( TextArea textArea, int line ) : int

Could be overwritten to define more complex indenting.

메소드 상세

AutoIndentLine() 보호된 메소드

Could be overwritten to define more complex indenting.
protected AutoIndentLine ( TextArea textArea, int lineNumber ) : int
textArea TextArea
lineNumber int
리턴 int

DefaultFormattingStrategy() 공개 메소드

Creates a new instance off DefaultFormattingStrategy
public DefaultFormattingStrategy ( ) : System
리턴 System

FormatLine() 공개 메소드

This function formats a specific line after ch is pressed.
public FormatLine ( TextArea textArea, int line, int cursorOffset, char ch ) : int
textArea TextArea
line int
cursorOffset int
ch char
리턴 int

GetIndentation() 보호된 메소드

returns the whitespaces which are before a non white space character in the line line as a string.
protected GetIndentation ( TextArea textArea, int lineNumber ) : string
textArea TextArea
lineNumber int
리턴 string

IndentLine() 공개 메소드

This function sets the indentation level in a specific line
public IndentLine ( TextArea textArea, int line ) : int
textArea TextArea
line int
리턴 int

IndentLines() 공개 메소드

This function sets the indentlevel in a range of lines.
public IndentLines ( TextArea textArea, int begin, int end ) : void
textArea TextArea
begin int
end int
리턴 void

SearchBracketBackward() 공개 메소드

public SearchBracketBackward ( IDocument document, int offset, char openBracket, char closingBracket ) : int
document IDocument
offset int
openBracket char
closingBracket char
리턴 int

SearchBracketForward() 공개 메소드

public SearchBracketForward ( IDocument document, int offset, char openBracket, char closingBracket ) : int
document IDocument
offset int
openBracket char
closingBracket char
리턴 int

SmartIndentLine() 보호된 메소드

Could be overwritten to define more complex indenting.
protected SmartIndentLine ( TextArea textArea, int line ) : int
textArea TextArea
line int
리턴 int