ComponentOne RulesManager for WinForms
C1.Win.RulesManager.Model Namespace / IItemRangeCollection Interface / SetRange Method
text to parse

In This Topic
    SetRange Method (IItemRangeCollection)
    In This Topic
    Tries to parse text into the IItemRange object or list of objects and fill out the collection.
    Syntax
    'Declaration
     
    
    Function SetRange( _
       ByVal text As String _
    ) As Boolean
    bool SetRange( 
       string text
    )

    Parameters

    text
    text to parse

    Return Value

    True of success.
    Remarks
    The separator for the ranges is ';'.
    Example
    collection.SetRange("1:7;[Field1];5:6:[Field2]"); Fills collection with 3 ranges: C1.Win.RulesManager.ItemRange with FirstItem = 1 and LastItem = 7, C1.Win.RulesManager.FieldRange with 1 field: Field1, C1.Win.RulesManager.CustomItemRange with FirstItem = 5, LastItem = 6 and 1 field: Field2.
    See Also