C# Class Engage.Survey.Util.Utility

Class that contains static and utility type behavior.
Afficher le fichier Open project: EngageSoftware/Engage-Survey

Méthodes publiques

Méthode Description
ConvertNumberToCharacter ( int value ) : string

Converts the number to character.

ConvertNumberToRomanNumeral ( int value ) : string

Converts the number to roman numeral.

CreateWebControl ( IQuestion question, bool readOnly, string style, ILocalizer localizer ) : Control

Create a web control for the survey renderer.

PrependFormatting ( ElementFormatOption option, int relativeOrder ) : string

Prepends the formatting.

Private Methods

Méthode Description
GenerateNumber ( int &value, int magnitude, char letter ) : string

Generates the number.

RenderCheckBoxList ( IQuestion question, bool readOnly, string style, string limitReachedErrorFormat ) : Control

Renders the check box list.

RenderDropDownList ( IQuestion question, string style, string defaultOptionText ) : Control

Renders the drop down list.

RenderHorizontalOptionButtons ( IQuestion question, string style ) : Control

Renders the horizontal option buttons.

RenderLargeTextInputField ( IQuestion question, string style ) : Control

Renders the large text input field.

RenderSmallInputField ( IQuestion question, string style ) : Control

Renders the small input field.

RenderVerticalOptionButtons ( IQuestion question, string style ) : Control

Renders the vertical option buttons.

Method Details

ConvertNumberToCharacter() public static méthode

Converts the number to character.
public static ConvertNumberToCharacter ( int value ) : string
value int The value to convert.
Résultat string

ConvertNumberToRomanNumeral() public static méthode

Converts the number to roman numeral.
public static ConvertNumberToRomanNumeral ( int value ) : string
value int The value to convert.
Résultat string

CreateWebControl() public static méthode

Create a web control for the survey renderer.
public static CreateWebControl ( IQuestion question, bool readOnly, string style, ILocalizer localizer ) : Control
question IQuestion The question.
readOnly bool if set to true [read only].
style string The style.
localizer ILocalizer Localizes text.
Résultat System.Web.UI.Control

PrependFormatting() public static méthode

Prepends the formatting.
public static PrependFormatting ( ElementFormatOption option, int relativeOrder ) : string
option ElementFormatOption The option.
relativeOrder int The relative order.
Résultat string