C# Class LayoutFarm.Text.EditableTextRun

Inheritance: EditableRun
ファイルを表示 Open project: prepare/HTML-Renderer Class Usage Examples

Private Properties

Property Type Description
CalculateDrawingStringSize PixelFarm.Drawing.Size
EvaluateFontAndTextColor int
InsertAfter void
MakeTextRun EditableRun
Remove EditableRun
UpdateRunWidth void

Public Methods

Method Description
Clone ( ) : EditableRun
Copy ( int startIndex ) : EditableRun
Copy ( int startIndex, int length ) : EditableRun
CopyContentToStringBuilder ( StringBuilder stBuilder ) : void
CustomDrawToThisCanvas ( Canvas canvas, Rectangle updateArea ) : void
EditableTextRun ( RootGraphic gfx, char copyBuffer, TextSpanStyle style ) : System
EditableTextRun ( RootGraphic gfx, string str, TextSpanStyle style ) : System
GetChar ( int index ) : char
GetCharacterFromPixelOffset ( int pixelOffset ) : EditableRunCharLocation
GetRunWidth ( int charOffset ) : int
LeftCopy ( int index ) : EditableRun
ResetRootGraphics ( RootGraphic rootgfx ) : void
SetStyle ( TextSpanStyle spanStyle ) : void

Protected Methods

Method Description
GetFont ( ) : RequestFont

Private Methods

Method Description
CalculateDrawingStringSize ( char buffer, int length ) : Size
EvaluateFontAndTextColor ( Canvas canvas, TextSpanStyle spanStyle ) : int
InsertAfter ( int index, char c ) : void
MakeTextRun ( int sourceIndex, int length ) : EditableRun
Remove ( int startIndex, int length, bool withFreeRun ) : EditableRun
UpdateRunWidth ( ) : void

Method Details

Clone() public method

public Clone ( ) : EditableRun
return EditableRun

Copy() public method

public Copy ( int startIndex ) : EditableRun
startIndex int
return EditableRun

Copy() public method

public Copy ( int startIndex, int length ) : EditableRun
startIndex int
length int
return EditableRun

CopyContentToStringBuilder() public method

public CopyContentToStringBuilder ( StringBuilder stBuilder ) : void
stBuilder StringBuilder
return void

CustomDrawToThisCanvas() public method

public CustomDrawToThisCanvas ( Canvas canvas, Rectangle updateArea ) : void
canvas PixelFarm.Drawing.Canvas
updateArea PixelFarm.Drawing.Rectangle
return void

EditableTextRun() public method

public EditableTextRun ( RootGraphic gfx, char copyBuffer, TextSpanStyle style ) : System
gfx RootGraphic
copyBuffer char
style TextSpanStyle
return System

EditableTextRun() public method

public EditableTextRun ( RootGraphic gfx, string str, TextSpanStyle style ) : System
gfx RootGraphic
str string
style TextSpanStyle
return System

GetChar() public method

public GetChar ( int index ) : char
index int
return char

GetCharacterFromPixelOffset() public method

public GetCharacterFromPixelOffset ( int pixelOffset ) : EditableRunCharLocation
pixelOffset int
return EditableRunCharLocation

GetFont() protected method

protected GetFont ( ) : RequestFont
return PixelFarm.Drawing.RequestFont

GetRunWidth() public method

public GetRunWidth ( int charOffset ) : int
charOffset int
return int

LeftCopy() public method

public LeftCopy ( int index ) : EditableRun
index int
return EditableRun

ResetRootGraphics() public method

public ResetRootGraphics ( RootGraphic rootgfx ) : void
rootgfx RootGraphic
return void

SetStyle() public method

public SetStyle ( TextSpanStyle spanStyle ) : void
spanStyle TextSpanStyle
return void