ClassPropertyHelper
Class
Utility to scan properties through reflection.
Definition
Namespace:Telerik.Windows.Controls.Diagrams.Extensions
Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax:
cs-api-definition
public static class PropertyHelper
Inheritance: objectPropertyHelper
Methods
ConvertValue(Type, object)
Converts the value.
GetCoercedValue(string, object)
Gets the coerced value.
GetDefaultValue(Type)
Gets the default value.
GetValue(string, object)
Gets the value of the property.
GetValueByPropertyPath(string, object, out bool)
Gets the value of property specified by a propertyPath string.
SetProperty(string, object, object)
Sets the value of the property.
Declaration
cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public static bool SetProperty(string propertyName, object source, object value)
Parameters
propertyName
Name of the property.
source
The source.
value
The value.
Returns
SetPropertyViaPropertyPath(string, IDiagramItem, object)
Sets property of the given IDiagramItem. The path to the property is given in the propertyPath string parameter.
Declaration
cs-api-definition
public static void SetPropertyViaPropertyPath(string propertyPath, IDiagramItem diagramItem, object newValue)
Parameters
propertyPath
diagramItem
newValue