Click or drag to resize

CustomTextGenerator Class

Text generator using placeholders for generating text.
Inheritance Hierarchy
SystemObject
  RAYLASE.Marker.Common.TextGeneratorBaseTextGenerator
    RAYLASE.Marker.Common.TextGeneratorBaseIncrementalTextGenerator
      RAYLASE.Marker.Common.TextGeneratorCustomTextGenerator

Namespace: RAYLASE.Marker.Common.TextGenerator
Assembly: RAYLASE.Marker.Common (in RAYLASE.Marker.Common.dll) Version: 2.19.0
Syntax
C#
public class CustomTextGenerator : BaseIncrementalTextGenerator

The CustomTextGenerator type exposes the following members.

Constructors
 NameDescription
Public methodCustomTextGeneratorInitializes a new instance of the CustomTextGenerator class
Top
Properties
 NameDescription
Public propertyBatch Result will incremented after batch times iterations.
(Inherited from BaseIncrementalTextGenerator)
Public propertyCurrentIteration Current iteration.
(Inherited from BaseIncrementalTextGenerator)
Public propertyIncrement Increments result by value each iteration.
(Inherited from BaseIncrementalTextGenerator)
Protected propertyLastSimulationID
(Inherited from BaseIncrementalTextGenerator)
Protected propertyLastValue
(Inherited from BaseIncrementalTextGenerator)
Public propertyLogPath Logs the executed string, if not null.
(Inherited from BaseTextGenerator)
Public propertyMinDigits Minumum number of digits. Prepends 0 to reach the minimum length.
(Overrides BaseIncrementalTextGeneratorMinDigits)
Public propertyResetCounterDelegate
(Inherited from BaseIncrementalTextGenerator)
Public propertyResetType
(Inherited from BaseIncrementalTextGenerator)
Public propertyStart Start value. Setting a new value will reset CurrentIteration.
(Inherited from BaseIncrementalTextGenerator)
Public propertyText String containing the placeholders for generation the text. See CustomTextGenerator for detailed information.
Public propertyTime 
Public propertyType Type of the text generator.
(Overrides BaseTextGeneratorType)
Public propertyUserRuleGenerator 
Top
Methods
Remarks
Text contains placeholders, prepended by %, defining the result. Valid placeholder are:
ADay of week abbr
BMonth abbr
CDate and time
cDate
DDay of month
KMonth code
LYear last digit
MMonth
NMinutes
FSeconds
OIncremental number
PAM PM
RWeek starting 01.01
rWeek starting first thursday
TTime HH:MM
tTime HH:MM:SS
WDay of week 1 = Sunday
wDay of week 1 = Monday
YYear two digits
(my_variable_name)The value stored in variable "my_variable_name"
E.g: "Today is %A, the %D.%M." results in: "Today is Tue, the 09.10." Non valid control characters are ignored, escape character is \.
See Also