Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 567 Bytes

5.TextEditor.md

File metadata and controls

25 lines (17 loc) · 567 Bytes

ver: 1.0

how to use?

TextEditor _textEditor = new TextEditor();

_textEditor.DrawEditor(rect,ref text);

API description:

  • ShowLineNum: Whether to display line numbers
  • LineNumWidth: Line number occupied width
  • LineHeight: Height of each line
  • BottomHeight: Leave height at the bottom
  • OnDrawLineNum: Custom line number draw
  • Position: Rect for text editor
  • EditorPosition: Rect in text editing area
  • DrawEditor: Draw the Text editor
  • DrawLine: Draw underline

详细例子请看JsonConfigObject的文本编辑模式