C# Class LayoutFarm.Text.TextEditRenderBox

显示文件 Open project: prepare/HTML-Renderer Class Usage Examples

Private Properties

Property Type Description
BoxEvaluateScrollBar void
EnsureCaretVisible void
GetFreeStringBuilder System.Text.StringBuilder
GetSelectionUpdateArea Rectangle
InvalidateGraphicOfCurrentLineArea void
MyScrollBy void
MyScrollByNotRaiseEvent void
MyScrollTo void
MyScrollToNotRaiseEvent void
RefreshSnapshotCanvas void
ReleaseStringBuilder void
SetCaretState void
SwapCaretState void

Public Methods

Method Description
AddHScrollHandler ( EventHandler hscrollChanged, EventHandler hscrollSupport ) : void
AddTextRun ( EditableRun textspan ) : void
AddVScrollHandler ( EventHandler vscrollChanged, EventHandler vscrollSupport ) : void
Blur ( ) : void
ClearAllChildren ( ) : void
CopyContentToStringBuilder ( StringBuilder stBuilder ) : void
CopyCurrentLine ( StringBuilder output ) : void
CopyLine ( int lineNum, StringBuilder output ) : void
CreateEditableTextRun ( char charBuffer ) : EditableRun
CreateEditableTextRun ( string str ) : EditableRun
CreateFreezeTextRun ( char charBuffer ) : EditableRun
DoEnd ( bool pressShitKey ) : void
DoHome ( bool pressShitKey ) : void
DoTab ( ) : void
DoTyping ( string text ) : void
Focus ( ) : void
GetRectAreaOf ( int beginlineNum, int beginColumnNum, int endLineNum, int endColumnNum ) : Rectangle
GetSelectedText ( StringBuilder output ) : void
LoadTextRun ( IEnumerable textRuns ) : void
MyScrollToNotRaiseEvent ( int x, int y ) : void
NotifyTextContentSizeChanged ( TextEditRenderBox ts ) : void
OnDoubleClick ( UIMouseEventArgs e ) : void
OnDrag ( UIMouseEventArgs e ) : void
OnDragEnd ( UIMouseEventArgs e ) : void
OnKeyDown ( UIKeyEventArgs e ) : void
OnKeyPress ( UIKeyEventArgs e ) : void
OnKeyUp ( UIKeyEventArgs e ) : void
OnMouseDown ( UIMouseEventArgs e ) : void
OnMouseUp ( UIMouseEventArgs e ) : void
OnProcessDialogKey ( UIKeyEventArgs e ) : bool
RemoveHScrollHandler ( EventHandler hscrollChanged, EventHandler hscrollSupport ) : void
RemoveVScrollHandler ( EventHandler vscrollChanged, EventHandler vscrollSupport ) : void
ReplaceCurrentLineTextRuns ( IEnumerable textRuns ) : void
ReplaceCurrentTextRunContent ( int nBackspace, string t ) : void
ReplaceLine ( int lineNum, IEnumerable textRuns ) : void

replace specific line number with textruns

ScrollBy ( int dx, int dy ) : void
ScrollTo ( int x, int y ) : void
ScrollToCurrentLine ( ) : void
ScrollToNotRaiseEvent ( int x, int y ) : void
SplitCurrentLineToNewLine ( ) : void
TextEditRenderBox ( RootGraphic rootgfx, int width, int height, bool isMultiLine ) : System.Text

Protected Methods

Method Description
DrawBoxContent ( Canvas canvas, Rectangle updateArea ) : void

Private Methods

Method Description
BoxEvaluateScrollBar ( ) : void
EnsureCaretVisible ( ) : void
GetFreeStringBuilder ( ) : StringBuilder
GetSelectionUpdateArea ( ) : Rectangle
InvalidateGraphicOfCurrentLineArea ( ) : void
MyScrollBy ( int dx, int dy ) : void
MyScrollByNotRaiseEvent ( int dx, int dy, UIScrollEventArgs &hScrollEventArgs, UIScrollEventArgs &vScrollEventArgs ) : void
MyScrollTo ( int x, int y ) : void
MyScrollToNotRaiseEvent ( int x, int y, UIScrollEventArgs &hScrollEventArgs, UIScrollEventArgs &vScrollEventArgs ) : void
RefreshSnapshotCanvas ( ) : void
ReleaseStringBuilder ( StringBuilder stBuilder ) : void
SetCaretState ( bool visible ) : void
SwapCaretState ( ) : void

Method Details

AddHScrollHandler() public method

public AddHScrollHandler ( EventHandler hscrollChanged, EventHandler hscrollSupport ) : void
hscrollChanged EventHandler
hscrollSupport EventHandler
return void

AddTextRun() public method

public AddTextRun ( EditableRun textspan ) : void
textspan EditableRun
return void

AddVScrollHandler() public method

public AddVScrollHandler ( EventHandler vscrollChanged, EventHandler vscrollSupport ) : void
vscrollChanged EventHandler
vscrollSupport EventHandler
return void

Blur() public method

public Blur ( ) : void
return void

ClearAllChildren() public method

public ClearAllChildren ( ) : void
return void

CopyContentToStringBuilder() public method

public CopyContentToStringBuilder ( StringBuilder stBuilder ) : void
stBuilder System.Text.StringBuilder
return void

CopyCurrentLine() public method

public CopyCurrentLine ( StringBuilder output ) : void
output System.Text.StringBuilder
return void

CopyLine() public method

public CopyLine ( int lineNum, StringBuilder output ) : void
lineNum int
output System.Text.StringBuilder
return void

CreateEditableTextRun() public method

public CreateEditableTextRun ( char charBuffer ) : EditableRun
charBuffer char
return EditableRun

CreateEditableTextRun() public method

public CreateEditableTextRun ( string str ) : EditableRun
str string
return EditableRun

CreateFreezeTextRun() public method

public CreateFreezeTextRun ( char charBuffer ) : EditableRun
charBuffer char
return EditableRun

DoEnd() public method

public DoEnd ( bool pressShitKey ) : void
pressShitKey bool
return void

DoHome() public method

public DoHome ( bool pressShitKey ) : void
pressShitKey bool
return void

DoTab() public method

public DoTab ( ) : void
return void

DoTyping() public method

public DoTyping ( string text ) : void
text string
return void

DrawBoxContent() protected method

protected DrawBoxContent ( Canvas canvas, Rectangle updateArea ) : void
canvas Canvas
updateArea Rectangle
return void

Focus() public method

public Focus ( ) : void
return void

GetRectAreaOf() public method

public GetRectAreaOf ( int beginlineNum, int beginColumnNum, int endLineNum, int endColumnNum ) : Rectangle
beginlineNum int
beginColumnNum int
endLineNum int
endColumnNum int
return Rectangle

GetSelectedText() public method

public GetSelectedText ( StringBuilder output ) : void
output System.Text.StringBuilder
return void

LoadTextRun() public method

public LoadTextRun ( IEnumerable textRuns ) : void
textRuns IEnumerable
return void

MyScrollToNotRaiseEvent() public method

public MyScrollToNotRaiseEvent ( int x, int y ) : void
x int
y int
return void

NotifyTextContentSizeChanged() public static method

public static NotifyTextContentSizeChanged ( TextEditRenderBox ts ) : void
ts TextEditRenderBox
return void

OnDoubleClick() public method

public OnDoubleClick ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
return void

OnDrag() public method

public OnDrag ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
return void

OnDragEnd() public method

public OnDragEnd ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
return void

OnKeyDown() public method

public OnKeyDown ( UIKeyEventArgs e ) : void
e UIKeyEventArgs
return void

OnKeyPress() public method

public OnKeyPress ( UIKeyEventArgs e ) : void
e UIKeyEventArgs
return void

OnKeyUp() public method

public OnKeyUp ( UIKeyEventArgs e ) : void
e UIKeyEventArgs
return void

OnMouseDown() public method

public OnMouseDown ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
return void

OnMouseUp() public method

public OnMouseUp ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
return void

OnProcessDialogKey() public method

public OnProcessDialogKey ( UIKeyEventArgs e ) : bool
e UIKeyEventArgs
return bool

RemoveHScrollHandler() public method

public RemoveHScrollHandler ( EventHandler hscrollChanged, EventHandler hscrollSupport ) : void
hscrollChanged EventHandler
hscrollSupport EventHandler
return void

RemoveVScrollHandler() public method

public RemoveVScrollHandler ( EventHandler vscrollChanged, EventHandler vscrollSupport ) : void
vscrollChanged EventHandler
vscrollSupport EventHandler
return void

ReplaceCurrentLineTextRuns() public method

public ReplaceCurrentLineTextRuns ( IEnumerable textRuns ) : void
textRuns IEnumerable
return void

ReplaceCurrentTextRunContent() public method

public ReplaceCurrentTextRunContent ( int nBackspace, string t ) : void
nBackspace int
t string
return void

ReplaceLine() public method

replace specific line number with textruns
public ReplaceLine ( int lineNum, IEnumerable textRuns ) : void
lineNum int
textRuns IEnumerable
return void

ScrollBy() public method

public ScrollBy ( int dx, int dy ) : void
dx int
dy int
return void

ScrollTo() public method

public ScrollTo ( int x, int y ) : void
x int
y int
return void

ScrollToCurrentLine() public method

public ScrollToCurrentLine ( ) : void
return void

ScrollToNotRaiseEvent() public method

public ScrollToNotRaiseEvent ( int x, int y ) : void
x int
y int
return void

SplitCurrentLineToNewLine() public method

public SplitCurrentLineToNewLine ( ) : void
return void

TextEditRenderBox() public method

public TextEditRenderBox ( RootGraphic rootgfx, int width, int height, bool isMultiLine ) : System.Text
rootgfx RootGraphic
width int
height int
isMultiLine bool
return System.Text