IControlProperty
- Last UpdatedJun 22, 2023
- 1 minute read
IControlProperty is the interface for the control property.
Definition of IControlProperty
public interface IControlProperty
{
BaseControl GetPropertyControl(BaseControl control, PropertyInfo propertyInformation);
void ReadProperty(PropertyInfo propertyInformation, IXPathNavigable xmlDocument, object propertyValue);
void WriteProperty(IXPathNavigable xmlDocument, BaseDataControl propertyControl, BaseControl control);
}
GetPropertyControl()
This method renders the property for the custom control.
Syntax
BaseControl GetPropertyControl(BaseControl control, PropertyInfo propertyInformation);
Parameters
|
Parameter |
Description |
|---|---|
|
control |
Control for which the property is being rendered. |
|
propertyInformation |
Information about the property. |
Return Value
This method returns the control.
ReadProperty()
This method reads the property value and updates the instance XML for the custom control.
Syntax
void ReadProperty(PropertyInfo propertyInformation, IXPathNavigable xmlDocument, object propertyValue);
Parameters
|
Parameter |
Description |
|
propertyInformation |
Information about the property. |
|
xmlDocument |
Form instance XML. |
|
propertyValue |
Value of the property. |
Return Value
This method returns the control.
WriteProperty()
This method writes the property value for the custom control.
Syntax
void WriteProperty(IXPathNavigable xmlDocument, BaseDataControl propertyControl, BaseControl control);
Parameters
|
Parameter |
Description |
|---|---|
|
xmlDocument |
Form instance XML. |
|
propertyControl |
Property of the control. |
|
control |
Control for which the property is being rendered. |
Return Value
This method returns the control.