Interface IEditingComponentConfigurator
Encapsulates logic for configuring FormComponentProperties of a FormComponent<TProperties, TValue> using attributes.
public interface IEditingComponentConfigurator
- Extension Methods
Methods
ConfigureFormComponentProperties(PropertyInfo, FormComponentProperties)
Configures given formComponentProperties according to propertyInfo's attributes. The EditingComponentAttribute
and EditingComponentPropertyAttribute classes are supported.
void ConfigureFormComponentProperties(PropertyInfo propertyInfo, FormComponentProperties formComponentProperties)
Parameters
propertyInfoPropertyInfoSystem.Reflection.PropertyInfo annotated with EditingComponentPropertyAttributes for configuring FormComponent<TProperties, TValue> that handles editing of
propertyInfoin Form builder UI.formComponentPropertiesFormComponentPropertiesProperties of the FormComponent<TProperties, TValue> used for editing
propertyInfoin Form builder UI.
Exceptions
- ArgumentNullException
Thrown when
propertyInfoorformComponentPropertiesis null.- InvalidOperationException
Thrown when an EditingComponentPropertyAttribute of
propertyInfospecifies a property which does not exist withinformComponentProperties.