/// <summary> /// Returns the accessibility standard code from the enumeration value. /// </summary> /// <param name="value">Value to convert</param> public static int FromEnum(AccessibilityStandardEnum value) { switch (value) { case AccessibilityStandardEnum.BITV1_0: return(BITV1_0); case AccessibilityStandardEnum.Section508: return(Section508); case AccessibilityStandardEnum.StancaAct: return(StancaAct); case AccessibilityStandardEnum.WCAG1_0A: return(WCAG1_0A); case AccessibilityStandardEnum.WCAG1_0AA: return(WCAG1_0AA); case AccessibilityStandardEnum.WCAG1_0AAA: return(WCAG1_0AAA); case AccessibilityStandardEnum.WCAG2_0A: return(WCAG2_0A); case AccessibilityStandardEnum.WCAG2_0AA: return(WCAG2_0AA); case AccessibilityStandardEnum.WCAG2_0AAA: return(WCAG2_0AAA); default: return(WCAG2_0AA); } }
/// <summary> /// Returns the accessibility standard code from the enumeration value. /// </summary> /// <param name="value">Value to convert</param> public static int FromEnum(AccessibilityStandardEnum value) { switch (value) { case AccessibilityStandardEnum.BITV1_0: return BITV1_0; case AccessibilityStandardEnum.Section508: return Section508; case AccessibilityStandardEnum.StancaAct: return StancaAct; case AccessibilityStandardEnum.WCAG1_0A: return WCAG1_0A; case AccessibilityStandardEnum.WCAG1_0AA: return WCAG1_0AA; case AccessibilityStandardEnum.WCAG1_0AAA: return WCAG1_0AAA; case AccessibilityStandardEnum.WCAG2_0A: return WCAG2_0A; case AccessibilityStandardEnum.WCAG2_0AA: return WCAG2_0AA; case AccessibilityStandardEnum.WCAG2_0AAA: return WCAG2_0AAA; default: return WCAG2_0AA; } }