EControl Syntax Editor SDK
TComplexRender.OnGetCustomElem Event

Occurs when custom tag is detected in formatting string.

property OnGetCustomElem: TGetCustomElemEvent;

Write OnGetCustomElem event handler to set formatting at the location of custom tag. 

ItemIndex - specifies index of currently parsed item; 

TagIndex - specifies index of custom tag in the item; 

You may set next formatting parameters: 

ImageIndex - specifies image to be placed at this position; 

StyleIndex - specifies new style which will be used starting from this position; 

Text - specifies text to be placed at the given position. 


Note: It is possible to define all parameters simultaneously. 

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!