Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 529 Bytes

5.TextEditor.md

File metadata and controls

25 lines (17 loc) · 529 Bytes

ver: 1.0

如何使用?

TextEditor _textEditor = new TextEditor();

_textEditor.DrawEditor(rect,ref text);

API说明:

  • ShowLineNum: 是否显示行号
  • LineNumWidth: 行号所占宽度
  • LineHeight: 每行的高度
  • BottomHeight: 底部留出高度
  • OnDrawLineNum: 自定义处理行号绘制
  • Position: 文本编辑器的Rect
  • EditorPosition: 文本编辑区的Rect
  • DrawEditor: 绘制编辑器
  • DrawLine: 绘制下划线

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