in src/Desktop/UIAutomation/CustomObjects/Registrar.cs [85:98]
private static UIAutomationType GetUnderlyingUIAType(CustomUIAPropertyType type)
{
switch (type)
{
case CustomUIAPropertyType.String: return UIAutomationType.UIAutomationType_String;
case CustomUIAPropertyType.Int: return UIAutomationType.UIAutomationType_Int;
case CustomUIAPropertyType.Bool: return UIAutomationType.UIAutomationType_Bool;
case CustomUIAPropertyType.Double: return UIAutomationType.UIAutomationType_Double;
case CustomUIAPropertyType.Point: return UIAutomationType.UIAutomationType_Point;
case CustomUIAPropertyType.Element: return UIAutomationType.UIAutomationType_Element;
case CustomUIAPropertyType.Enum: return UIAutomationType.UIAutomationType_Int;
default: throw new ArgumentException("Unset or unknown type", nameof(type));
}
}