C# Class TUM.CMS.VPL.Scripting.ImageElementGenerator

This class can be used to embed images inside AvalonEdit like this:
Inheritance: ICSharpCode.AvalonEdit.Rendering.VisualLineElementGenerator
Show file Open project: tumcms/TUM.CMS.VPLControl

Public Methods

Method Description
ConstructElement ( int offset ) : ICSharpCode.AvalonEdit.Rendering.VisualLineElement

Constructs an element at the specified offset. May return null if no element should be constructed.

GetFirstInterestedOffset ( int startOffset ) : int

Gets the first offset >= startOffset where the generator wants to construct an element. Return -1 to signal no interest.

ImageElementGenerator ( string basePath ) : System

Private Methods

Method Description
FindMatch ( int startOffset ) : Match
LoadBitmap ( string fileName ) : BitmapImage

Method Details

ConstructElement() public method

Constructs an element at the specified offset. May return null if no element should be constructed.
public ConstructElement ( int offset ) : ICSharpCode.AvalonEdit.Rendering.VisualLineElement
offset int
return ICSharpCode.AvalonEdit.Rendering.VisualLineElement

GetFirstInterestedOffset() public method

Gets the first offset >= startOffset where the generator wants to construct an element. Return -1 to signal no interest.
public GetFirstInterestedOffset ( int startOffset ) : int
startOffset int
return int

ImageElementGenerator() public method

public ImageElementGenerator ( string basePath ) : System
basePath string
return System