Difference between revisions of "QuestionGroupTree class"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
{{CGscriptClass_Template
 +
|Name=<nowiki>QuestionGroupTree</nowiki>
 +
|Description=<nowiki>A question group in questionnaire.</nowiki>
 +
|InheritsFrom=object|Methods=
 +
{{CGscriptMethods_Template|ReturnType=Array of QuestionGroupTree|Name=<nowiki>GetChildGroups</nowiki>|Description=<nowiki>Return all child groups, if empty then it is a leaf.</nowiki>}}
 +
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
 +
|Properties=
 +
{{CGscriptProperties_Template|ReturnType=Array of strings|Name=<nowiki>AllQuestions</nowiki>|HasGetter=1|Description=<nowiki>Labels of all questions in this group</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>Count</nowiki>|HasGetter=1|Description=<nowiki>How many children in this group</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>GroupName</nowiki>|HasGetter=1|Description=<nowiki>Name of question group</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>The name of the type of object.</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>SequenceType</nowiki>|HasGetter=1|Description=<nowiki>Which kind of question group is it</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
 +
}}
 
[[Category:Archive]]
 
[[Category:Archive]]
QuestionGroupTree is the parent class of [[QuestionGroupBranch class|QuestionGroupBranch]] and [[QuestionGroupLeaf class|QuestionGroupLeaf]]
 

Revision as of 09:04, 2 July 2020

QuestionGroupTree



A question group in questionnaire.

Parent class

Inherits from object

Methods

  • Array of QuestionGroupTree GetChildGroups() - Return all child groups, if empty then it is a leaf.
  • (From object) string ToString() - The string representation of the object.

Properties

  • Array of string AllQuestions { get; } - Labels of all questions in this group
  • int Count { get; } - How many children in this group
  • string GroupName { get; } - Name of question group
  • (From object) string ObjectTypeName { get; } - The name of the type of object.
  • string SequenceType { get; } - Which kind of question group is it
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.