C# Class LayoutFarm.Text.TextEditRenderBox

Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DrawBoxContent ( Canvas canvas, Rectangle updateArea ) : void

Private Methods

Méthode 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 méthode

public AddHScrollHandler ( EventHandler hscrollChanged, EventHandler hscrollSupport ) : void
hscrollChanged EventHandler
hscrollSupport EventHandler
Résultat void

AddTextRun() public méthode

public AddTextRun ( EditableRun textspan ) : void
textspan EditableRun
Résultat void

AddVScrollHandler() public méthode

public AddVScrollHandler ( EventHandler vscrollChanged, EventHandler vscrollSupport ) : void
vscrollChanged EventHandler
vscrollSupport EventHandler
Résultat void

Blur() public méthode

public Blur ( ) : void
Résultat void

ClearAllChildren() public méthode

public ClearAllChildren ( ) : void
Résultat void

CopyContentToStringBuilder() public méthode

public CopyContentToStringBuilder ( StringBuilder stBuilder ) : void
stBuilder System.Text.StringBuilder
Résultat void

CopyCurrentLine() public méthode

public CopyCurrentLine ( StringBuilder output ) : void
output System.Text.StringBuilder
Résultat void

CopyLine() public méthode

public CopyLine ( int lineNum, StringBuilder output ) : void
lineNum int
output System.Text.StringBuilder
Résultat void

CreateEditableTextRun() public méthode

public CreateEditableTextRun ( char charBuffer ) : EditableRun
charBuffer char
Résultat EditableRun

CreateEditableTextRun() public méthode

public CreateEditableTextRun ( string str ) : EditableRun
str string
Résultat EditableRun

CreateFreezeTextRun() public méthode

public CreateFreezeTextRun ( char charBuffer ) : EditableRun
charBuffer char
Résultat EditableRun

DoEnd() public méthode

public DoEnd ( bool pressShitKey ) : void
pressShitKey bool
Résultat void

DoHome() public méthode

public DoHome ( bool pressShitKey ) : void
pressShitKey bool
Résultat void

DoTab() public méthode

public DoTab ( ) : void
Résultat void

DoTyping() public méthode

public DoTyping ( string text ) : void
text string
Résultat void

DrawBoxContent() protected méthode

protected DrawBoxContent ( Canvas canvas, Rectangle updateArea ) : void
canvas Canvas
updateArea Rectangle
Résultat void

Focus() public méthode

public Focus ( ) : void
Résultat void

GetRectAreaOf() public méthode

public GetRectAreaOf ( int beginlineNum, int beginColumnNum, int endLineNum, int endColumnNum ) : Rectangle
beginlineNum int
beginColumnNum int
endLineNum int
endColumnNum int
Résultat Rectangle

GetSelectedText() public méthode

public GetSelectedText ( StringBuilder output ) : void
output System.Text.StringBuilder
Résultat void

LoadTextRun() public méthode

public LoadTextRun ( IEnumerable textRuns ) : void
textRuns IEnumerable
Résultat void

MyScrollToNotRaiseEvent() public méthode

public MyScrollToNotRaiseEvent ( int x, int y ) : void
x int
y int
Résultat void

NotifyTextContentSizeChanged() public static méthode

public static NotifyTextContentSizeChanged ( TextEditRenderBox ts ) : void
ts TextEditRenderBox
Résultat void

OnDoubleClick() public méthode

public OnDoubleClick ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
Résultat void

OnDrag() public méthode

public OnDrag ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
Résultat void

OnDragEnd() public méthode

public OnDragEnd ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
Résultat void

OnKeyDown() public méthode

public OnKeyDown ( UIKeyEventArgs e ) : void
e UIKeyEventArgs
Résultat void

OnKeyPress() public méthode

public OnKeyPress ( UIKeyEventArgs e ) : void
e UIKeyEventArgs
Résultat void

OnKeyUp() public méthode

public OnKeyUp ( UIKeyEventArgs e ) : void
e UIKeyEventArgs
Résultat void

OnMouseDown() public méthode

public OnMouseDown ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
Résultat void

OnMouseUp() public méthode

public OnMouseUp ( UIMouseEventArgs e ) : void
e UIMouseEventArgs
Résultat void

OnProcessDialogKey() public méthode

public OnProcessDialogKey ( UIKeyEventArgs e ) : bool
e UIKeyEventArgs
Résultat bool

RemoveHScrollHandler() public méthode

public RemoveHScrollHandler ( EventHandler hscrollChanged, EventHandler hscrollSupport ) : void
hscrollChanged EventHandler
hscrollSupport EventHandler
Résultat void

RemoveVScrollHandler() public méthode

public RemoveVScrollHandler ( EventHandler vscrollChanged, EventHandler vscrollSupport ) : void
vscrollChanged EventHandler
vscrollSupport EventHandler
Résultat void

ReplaceCurrentLineTextRuns() public méthode

public ReplaceCurrentLineTextRuns ( IEnumerable textRuns ) : void
textRuns IEnumerable
Résultat void

ReplaceCurrentTextRunContent() public méthode

public ReplaceCurrentTextRunContent ( int nBackspace, string t ) : void
nBackspace int
t string
Résultat void

ReplaceLine() public méthode

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

ScrollBy() public méthode

public ScrollBy ( int dx, int dy ) : void
dx int
dy int
Résultat void

ScrollTo() public méthode

public ScrollTo ( int x, int y ) : void
x int
y int
Résultat void

ScrollToCurrentLine() public méthode

public ScrollToCurrentLine ( ) : void
Résultat void

ScrollToNotRaiseEvent() public méthode

public ScrollToNotRaiseEvent ( int x, int y ) : void
x int
y int
Résultat void

SplitCurrentLineToNewLine() public méthode

public SplitCurrentLineToNewLine ( ) : void
Résultat void

TextEditRenderBox() public méthode

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