The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnBeforeRenderText


Unit: SDL_rchart
Class: TSmithChart
Declaration: property OnBeforeRenderText: TBeforeRenderTextEvent;
{ TBeforeRenderTextEvent = procedure (Sender: TObject; var Text: string; Index: integer; IsAnnotation: boolean) of object; }

The OnBeforeRenderText event provides a hook for adjusting the text of a text item before it is actually rendered. This allows, for example, to process formatting code which is embedded in the text.

In addition, you can directly access the corresponding container item using the parameters Index and IsAnnotation. Index is the index into the chart/annotation container, IsAnnotation indicates whether the item is an annotation element (IsAnnotation = TRUE) or a regular chart element (IsAnnotation = FALSE). Depending on the IsAnnotation parameter you can access and manipulate either DataContainer[Index] or AnnoContainer[Index].



Last Update: 2017-Okt-16