AnswerOption class

From Catglobe Wiki
Revision as of 10:35, 25 April 2022 by Administrator (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>AnswerOption</nowiki> |Description=<nowiki>The answer option template</nowiki> |InheritsFrom=object|Constructors= {{CGscriptConstructors...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

AnswerOption



The answer option template

Parent class

Inherits from object

Constructors

  • (QuestionTemplate question "The question contains this answer option") - Create new answer option and add it into question. Default its value is max options + 1
  • (int id "Answer option id") - Fetch exist answer option template

Methods

  • (From object) string ToString() - The string representation of the object.

Properties

  • bool HasData { get; } - Check if this answer option contains data or not
  • int Id { get; } - Answer option id
  • string ObjectTypeName { get; } - The name of the type of object.
  • LocalizedString Text { get; set; } - Answer option text
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.
  • int Value { get; set; } - Answer option value