Show / Hide Table of Contents

Class CodeUtils

This static class contains methods that may be used to find expressions embedded in the object's text.

Inheritance
System.Object
CodeUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Code
Assembly: FastReport.OpenSource.dll
Syntax
public static class CodeUtils

Methods

GetExpression(FindTextArgs, Boolean)

Gets first expression found in the text.

Declaration
public static string GetExpression(FindTextArgs args, bool skipStrings)
Parameters
Type Name Description
FindTextArgs args

Object with find arguments.

System.Boolean skipStrings

Indicates whether to skip strings.

Returns
Type Description
System.String

The expression if found; otherwise, returns an empty string.

GetExpressions(String, String, String)

Returns expressions found in the text.

Declaration
public static string[] GetExpressions(string text, string openBracket, string closeBracket)
Parameters
Type Name Description
System.String text

Text that may contain expressions.

System.String openBracket

The char sequence used to find the start of expression.

System.String closeBracket

The char sequence used to find the end of expression.

Returns
Type Description
System.String[]

Array of expressions if found; otherwise return an empty array.

Back to top Generated by DocFX