CreateSurveyQuestion

Presets.CreateSurveyQuestion method

创建一个具有可变答案数量的问题。用于 !:CreateSurvey(string, GlobalPageSettings, ChoiceBoxConfig[])

public static ChoiceBoxConfig CreateSurveyQuestion(string question, params string[] answers)
参数Type描述
questionString问题文本。
answersString[]问题的答案。

返回值

表示一个问题及其所有答案的对象

示例

var question = Presets.CreateSurveyQuestion("Are satisfied with your experience?", "Yes", "No", "Not sure");

另请参阅