C# Class LayoutFarm.Text.InternalTextLayerController

Exibir arquivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
AddCharToCurrentLine ( char c ) : void
AddRuns ( IEnumerable textSpans ) : void
AddTextRunToCurrentLine ( EditableRun t ) : void
AddTextRunsToCurrentLine ( IEnumerable textRuns ) : void
CancelSelect ( ) : void
Clear ( ) : void
CopyAllToPlainText ( System.StringBuilder output ) : void
CopyCurrentLine ( System.StringBuilder output ) : void
CopyLine ( int lineNum, System.StringBuilder output ) : void
CopySelectedTextToPlainText ( System.StringBuilder stBuilder ) : void
DoBackspace ( ) : bool
DoDelete ( ) : VisualSelectionRangeSnapShot
DoEnd ( ) : void
DoFormatSelection ( TextSpanStyle textStyle ) : void
DoHome ( ) : void
EndSelect ( ) : void
EndSelectIfNoSelection ( ) : void
FindTextRunOnPosition ( int x, int y ) : VisualPointInfo
GetCurrentPointInfo ( ) : EditableVisualPointInfo
GetFirstTextStyleInSelectedRange ( ) : TextSpanStyle
GetNextCharacterWidth ( ) : int
InternalTextLayerController ( TextEditRenderBox visualTextSurface, EditableTextFlowLayer textLayer ) : System
LoadTextRun ( IEnumerable runs ) : void
ReplaceCurrentLineTextRun ( IEnumerable textruns ) : void
ReplaceCurrentTextRunContent ( int nBackSpace, EditableRun newTextRun ) : void
ReplaceLine ( int lineNum, IEnumerable textruns ) : void
ReplaceLocalContent ( int nBackSpace, string content ) : void
ReverseLastUndoAction ( ) : void
SetCaretPos ( int x, int y ) : void
SplitCurrentLineIntoNewLine ( ) : void
StartSelect ( ) : void
StartSelectIfNoSelection ( ) : void
UndoLastAction ( ) : void
UpdateSelectionRange ( ) : void

Private Methods

Method Description
JoinWithNextLine ( ) : void
RemoveSelectedText ( ) : VisualSelectionRangeSnapShot
SplitSelectedText ( ) : void

Method Details

AddCharToCurrentLine() public method

public AddCharToCurrentLine ( char c ) : void
c char
return void

AddRuns() public method

public AddRuns ( IEnumerable textSpans ) : void
textSpans IEnumerable
return void

AddTextRunToCurrentLine() public method

public AddTextRunToCurrentLine ( EditableRun t ) : void
t EditableRun
return void

AddTextRunsToCurrentLine() public method

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

CancelSelect() public method

public CancelSelect ( ) : void
return void

Clear() public method

public Clear ( ) : void
return void

CopyAllToPlainText() public method

public CopyAllToPlainText ( System.StringBuilder output ) : void
output System.StringBuilder
return void

CopyCurrentLine() public method

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

CopyLine() public method

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

CopySelectedTextToPlainText() public method

public CopySelectedTextToPlainText ( System.StringBuilder stBuilder ) : void
stBuilder System.StringBuilder
return void

DoBackspace() public method

public DoBackspace ( ) : bool
return bool

DoDelete() public method

public DoDelete ( ) : VisualSelectionRangeSnapShot
return VisualSelectionRangeSnapShot

DoEnd() public method

public DoEnd ( ) : void
return void

DoFormatSelection() public method

public DoFormatSelection ( TextSpanStyle textStyle ) : void
textStyle TextSpanStyle
return void

DoHome() public method

public DoHome ( ) : void
return void

EndSelect() public method

public EndSelect ( ) : void
return void

EndSelectIfNoSelection() public method

public EndSelectIfNoSelection ( ) : void
return void

FindTextRunOnPosition() public method

public FindTextRunOnPosition ( int x, int y ) : VisualPointInfo
x int
y int
return VisualPointInfo

GetCurrentPointInfo() public method

public GetCurrentPointInfo ( ) : EditableVisualPointInfo
return EditableVisualPointInfo

GetFirstTextStyleInSelectedRange() public method

public GetFirstTextStyleInSelectedRange ( ) : TextSpanStyle
return TextSpanStyle

GetNextCharacterWidth() public method

public GetNextCharacterWidth ( ) : int
return int

InternalTextLayerController() public method

public InternalTextLayerController ( TextEditRenderBox visualTextSurface, EditableTextFlowLayer textLayer ) : System
visualTextSurface TextEditRenderBox
textLayer EditableTextFlowLayer
return System

LoadTextRun() public method

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

ReplaceCurrentLineTextRun() public method

public ReplaceCurrentLineTextRun ( IEnumerable textruns ) : void
textruns IEnumerable
return void

ReplaceCurrentTextRunContent() public method

public ReplaceCurrentTextRunContent ( int nBackSpace, EditableRun newTextRun ) : void
nBackSpace int
newTextRun EditableRun
return void

ReplaceLine() public method

public ReplaceLine ( int lineNum, IEnumerable textruns ) : void
lineNum int
textruns IEnumerable
return void

ReplaceLocalContent() public method

public ReplaceLocalContent ( int nBackSpace, string content ) : void
nBackSpace int
content string
return void

ReverseLastUndoAction() public method

public ReverseLastUndoAction ( ) : void
return void

SetCaretPos() public method

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

SplitCurrentLineIntoNewLine() public method

public SplitCurrentLineIntoNewLine ( ) : void
return void

StartSelect() public method

public StartSelect ( ) : void
return void

StartSelectIfNoSelection() public method

public StartSelectIfNoSelection ( ) : void
return void

UndoLastAction() public method

public UndoLastAction ( ) : void
return void

UpdateSelectionRange() public method

public UpdateSelectionRange ( ) : void
return void