示例#1
0
        //=== Conversion

        /// <summary> Converts a field to another type. </summary>
        public static FormElement ConvertField(FormElement field, Enums.FormElementType Type)
        {
            // Create new field
            FormElement newField = InitField(Type);

            // Merge properties
            newField.Merge(field);
            newField.Type = Type;

            return(newField);
        }