Struct Expander.ExpansionRule
A rule used to determine how much the string length should be increased by.
Syntax
[Serializable]
public struct ExpansionRule : IComparable<Expander.ExpansionRule>
Constructors
ExpansionRule(Int32, Int32, Single)
Create a new Expansion Rule instance.
Declaration
public ExpansionRule(int minCharacters, int maxCharacters, float expansion)
Parameters
Properties
ExpansionAmount
Declaration
public float ExpansionAmount { get; set; }
Property Value
MaxCharacters
The maximum characters. The evaluated string length must be less than this value.
Declaration
public int MaxCharacters { get; set; }
Property Value
MinCharacters
The minimum characters. The evaluated string length must be equal or greater than this value.
Declaration
public int MinCharacters { get; set; }
Property Value
Methods
CompareTo(Expander.ExpansionRule)
Used for sorting the expansion rules. Rules are sorted by the MinCharacters value.
Declaration
public int CompareTo(Expander.ExpansionRule other)
Parameters
Returns