C# Class Engage.Survey.Util.Utility

Class that contains static and utility type behavior.
ファイルを表示 Open project: EngageSoftware/Engage-Survey

Public Methods

Method 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

Method 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 method

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

ConvertNumberToRomanNumeral() public static method

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

CreateWebControl() public static method

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.
return System.Web.UI.Control

PrependFormatting() public static method

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