StiScriptHelper Class

Namespace: Stimulsoft.Report

Properties

Property Type Description
AllowCaching static bool  
TokenPositions List  
Tokens List<StiToken>  

Methods

Method Returns Description
ClearCache static void  
ClearTokensCache static void  
ClearTypesCache static void  
ContainsFunction bool  
ContainsNestedObject bool  
ContainsObject bool  
GetNestedObject bool  
GetObject object  
InvokeEventScript static object  
InvokeFunction object  
InvokeTextExpression static string Parses a mixed expression containing plain text and C# code blocks in curly braces. Each block in { } is executed as C# code, the rest is treated as plain text. Example: “Text {return 1+1;} more text {return DateTime.Now.Year;}”
IsAllowScriptsToRun static bool  
IsEventScript static bool  
IsObjectSupportsNesting bool  
IsReadOnlyObject bool  
IsScriptInExpression static (+1 overloads) bool  
ParseTextValue static (+3 overloads) object  
SetObject void  

Method Details

ClearCache static

ClearCache(report: StiReport): void

Parameters


ClearTokensCache static

ClearTokensCache(report: StiReport): void

Parameters


ClearTypesCache static

ClearTypesCache(report: StiReport): void

Parameters


ContainsFunction

ContainsFunction(name: string, **: TypeargumentTypes): bool

Parameters

  • name (string)
  • ** (TypeargumentTypes)

Returns bool


ContainsNestedObject

ContainsNestedObject(value: object, path: string): bool

Parameters

  • value (object)
  • path (string)

Returns bool


ContainsObject

ContainsObject(name: string): bool

Parameters

  • name (string)

Returns bool


GetNestedObject

GetNestedObject(value: object, path: string, result: object): bool

Parameters

  • value (object)
  • path (string)
  • result (object)

Returns bool


GetObject

GetObject(name: string): object

Parameters

  • name (string)

Returns object


InvokeEventScript static

InvokeEventScript(report: StiReport, sender: object, ev: StiEvent, args: EventArgs): object

Parameters

  • report (StiReport)
  • sender (object)
  • ev (StiEvent)
  • args (EventArgs)

Returns object


InvokeFunction

InvokeFunction(name: string, **: objectarguments, **: TypeargumentTypes): object

Parameters

  • name (string)
  • ** (objectarguments)
  • ** (TypeargumentTypes)

Returns object


InvokeTextExpression static

InvokeTextExpression(report: StiReport, expression: string, arguments: Dictionary<string, object>): string

Parses a mixed expression containing plain text and C# code blocks in curly braces. Each block in { } is executed as C# code, the rest is treated as plain text. Example: “Text {return 1+1;} more text {return DateTime.Now.Year;}”

Parameters

  • report (StiReport)
  • expression (string)
  • arguments (Dictionary<string, object>)

Returns string


IsAllowScriptsToRun static

IsAllowScriptsToRun(report: StiReport): bool

Parameters

Returns bool


IsEventScript static

IsEventScript(report: StiReport, ev: StiEvent): bool

Parameters

Returns bool


IsObjectSupportsNesting

IsObjectSupportsNesting(value: object): bool

Parameters

  • value (object)

Returns bool


IsReadOnlyObject

IsReadOnlyObject(name: string): bool

Parameters

  • name (string)

Returns bool


IsScriptInExpression static

IsScriptInExpression(expression: string, component: StiComponent): bool

Parameters

  • expression (string)
  • component (StiComponent)

Returns bool


IsScriptInExpression(expression: string, report: StiReport, checkBraces: bool): bool

Parameters

  • expression (string)
  • report (StiReport)
  • checkBraces (bool)

Returns bool


ParseTextValue static

ParseTextValue(expression: string, component: StiComponent): object

Parameters

  • expression (string)
  • component (StiComponent)

Returns object


ParseTextValue(expression: string, component: StiComponent, sender: object): object

Parameters

  • expression (string)
  • component (StiComponent)
  • sender (object)

Returns object


ParseTextValue(expression: string, component: StiComponent, parameters: StiParserParameters): object

Parameters

Returns object


ParseTextValue(expression: string, component: StiComponent, storeToPrint: bool, executeIfStoreToPrint: bool, returnAsmList: bool): object

Parameters

  • expression (string)
  • component (StiComponent)
  • storeToPrint (bool)
  • executeIfStoreToPrint (bool)
  • returnAsmList (bool)

Returns object


SetObject

SetObject(name: string, value: object): void

Parameters

  • name (string)
  • value (object)

Events

Event Type Description
VariableChanged StiVariableChangedEventHandler