Presets.CreateSurvey method

Combine questions into a simple survey.

public static void CreateSurvey(string fullPath, string title = null, 
    GlobalPageSettings settings = null, params ChoiceBoxConfig[] questions)
fullPathStringRelative or absolute path to the generated survey image.
titleStringOptional title of the survey.
settingsGlobalPageSettingsOptional page layout settings.
questionsChoiceBoxConfig[]A list of questions, configured using CreateSurveyQuestion.


var question1 = Presets.CreateSurveyQuestion("Are satisfied with your experience?", "Yes", "No", "Not sure");
var question2 = Presets.CreateSurveyQuestion("Rate our service:", "Great", "Good", "Mediocre", "Bad");
var settings = new GlobalPageSettings() { PaperSize = PaperSize.Letter }
Presets.CreateSurvey("C:\survey.png", "Customer satisfaction survey", settings, question1, question2);

See Also