[]
        
(Showing Draft Content)

C1.Win.RulesManager.Model.ItemRangeCollection.SetRange

SetRange Method

SetRange(string)

Tries to parse text into the IItemRange object or list of objects and fill out the collection.

Declaration
public bool SetRange(string text)
Parameters
Type Name Description
string text

text to parse

Returns
Type Description
bool

True of success.

Implements
Remarks

The separator for the ranges is ';'.

Examples

collection.SetRange("1:7;[Field1];5:6:[Field2]"); Fills collection with 3 ranges: ItemRange with FirstItem = 1 and LastItem = 7, FieldRange with 1 field: Field1, CustomItemRange with FirstItem = 5, LastItem = 6 and 1 field: Field2.