Toggle menu
913
3.8K
30.2K
279.2K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

QuestionInfo class

From Catglobe Wiki

QuestionInfo


Question metadata from a project questionnaire, with backward-compatible array indexing.

Parent class

Inherits from Array

Methods

  • string ToString() - The string representation of the object.
  • object this[] { get; }(int index "Index") - Backward-compatible indexer
  • Empty this[] { get; }(int index "Index", object value "Value to set") - Backward-compatible indexer

Properties

  • array AnswerOptions { get; } - The answer options for this question (lazy-loaded)
  • number Average { get; } - Average of the objects in the Array object. Can only use if all the elements are of type Number
  • int Id { get; } - The primary key of this question
  • string Label { get; } - The label (short code) of the question
  • number Max { get; } - Largest of all the objects in the Array object. Can only use if all the elements are of type Number
  • number Min { get; } - Smallest of all the objects in the Array object. Can only use if all the elements are of type Number
  • string ObjectTypeName { get; } - The name of the type of object.
  • array SubQuestions { get; } - The sub-questions (grid rows) for this question (lazy-loaded)
  • number Sum { get; } - Sum of all the objects in the Array object. Can only use if all the elements are of type Number
  • string Text { get; } - The localized text of the question
  • int Type { get; } - The question type (Single, Multi, Grid, etc.)
  • TypeInformation TypeInformation { get; } - Get information about this class.

Static Methods

  • array QuestionInfo_getAll() - Returns all questions in the current Questionnaire context
  • array QuestionInfo_getAll(int Questionnaire resource id "The Questionnaire resource id") - Returns all questions for the given Questionnaire resource id
  • QuestionInfo QuestionInfo_getQuestion(string Question label "Label of the question") - Returns the question object for the given label
  • QuestionInfo QuestionInfo_getQuestion(string Question label "Label of the question", string Iso-code "Language ISO code") - Returns the question object for the given label and language
  • QuestionInfo QuestionInfo_getQuestionByIndex(int Question index "Index of the question") - Returns the question at the given index in the current Questionnaire context
  • QuestionInfo QuestionInfo_getQuestionByIndex(int Question index "Index of the question", int? Questionnaire resource id "The Questionnaire resource id", string Iso-code "Language ISO code") - Returns the question at the given index for the specified Questionnaire and language
  • array QuestionInfo_getQuestions(int questionnaireId "The Questionnaire resource id") - Returns question objects for all given labels in a Questionnaire
  • array QuestionInfo_getQuestions(int questionnaireId "The Questionnaire resource id", array questionLabels "Array of question labels to return") - Returns question objects for the specified labels in a Questionnaire
  • array QuestionInfo_getQuestions(int questionnaireId "The Questionnaire resource id", array questionLabels "Array of question labels to return", string isoCode "ISO language code to filter results by (empty for user language)") - Returns question objects for the specified labels in a Questionnaire, filtered to a given language