Difference between revisions of "GroupBuilderRoot class"
Nguyenduyan (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=GroupBuilderRoot |Description=Represents a group builder rules for a group. |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGscrip...") |
Nguyenduyan (talk | contribs) |
||
Line 14: | Line 14: | ||
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} | ||
}} | }} | ||
+ | === <span style="color:#DF8621">'''Examples'''</span> === | ||
+ | <source lang="javascript"> | ||
+ | //add a new rule without variable | ||
+ | number groupRId = 15560405; | ||
+ | GroupBuilderRoot root = new GroupBuilderRoot (groupRId); | ||
+ | GroupBuilderRule rule = new GroupBuilderRule (root); | ||
+ | GroupBuilderRuleCollection ruleColection = root.RootRules; | ||
+ | ruleColection.Add(rule); | ||
+ | root.Save(); | ||
+ | </source> |
Revision as of 04:41, 19 April 2017
GroupBuilderRoot
Represents a group builder rules for a group.
Constructors
- (int ResourceId "Resource Id of the Group") - Load rules of group
Methods
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- GroupBuilderRuleCollection RootRules { get; } - The root rules
- TypeInformation TypeInformation { get; } - Get information about this class.
Examples
//add a new rule without variable
number groupRId = 15560405;
GroupBuilderRoot root = new GroupBuilderRoot (groupRId);
GroupBuilderRule rule = new GroupBuilderRule (root);
GroupBuilderRuleCollection ruleColection = root.RootRules;
ruleColection.Add(rule);
root.Save();