QuestionGroupBranch class
Revision as of 10:47, 25 April 2022 by Administrator (talk | contribs)
QuestionGroupBranch
Question group.
Parent class
Inherits from QuestionGroupTree
Constructors
- (string name "Group name", QuestionnaireTemplate qt "Questionnaire template") - Create a brand group
Methods
- Array of QuestionGroupTree GetChildGroups() - Return all child groups.
- Empty SetChildGroups(Array of QuestionGroupTree groups "Question groups") - Set child groups.
- (From object) string ToString() - The string representation of the object.
Properties
- (From QuestionGroupTree) Array of string AllQuestions { get; } - Labels of all questions in this group
- int Count { get; } - How many children in this group
- (From QuestionGroupTree) string GroupName { get; set; } - Name of question group
- (From QuestionGroupTree) bool IsLeaf { get; } - Check if it is leaf group or not
- string ObjectTypeName { get; } - The name of the type of object.
- (From QuestionGroupTree) number SelectCount { get; set; } - How many child items will be used for Sequence_Command_RandomizedSelect or Sequence_Command_RotateSelect
- (From QuestionGroupTree) SequenceCommand constant SequenceCommand { get; set; } - Which kind of this group is it, use constant Sequence_Command_xxx
- (From QuestionGroupTree) string SequenceType { get; } - Respent SequenceCommand as string
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
Examples
QuestionGroupBranch is returned when calling QuestionGroupRoot_class
number qnaireRId = 15644704;
QuestionGroupRoot root = Questionnaire_getQuestionGroups(qnaireRId);
QuestionGroupBranch branch = root.FindByName("G1");
print(branch.GroupName);//G1