SetCustomPropertyValue Method (GraphicControlFactory)
- Last UpdatedAug 21, 2026
- 2 minute read
Set a value to the Custom property
'Declaration
Public MustOverride Sub SetCustomPropertyValue( _
ByVal frameworkElement As FrameworkElement, _
ByVal name As String, _
ByVal value As String, _
ByVal isConstant As Boolean _
)
public abstract void SetCustomPropertyValue(
FrameworkElement frameworkElement,
string name,
string value,
bool isConstant
)
public:
abstract void SetCustomPropertyValue(
FrameworkElement^ frameworkElement,
String^ name,
String^ value,
bool isConstant
)
Parameters
- frameworkElement
- Graphic control Instance.
- name
- Name of the custom property to be modified on the graphic. This parameter is of type string, and it can be a reference or a constant.
- value
- The new value to be set. This parameter is of type string, and it can be an expression, reference, or constant. If the value is given in quotes ("), then the value is considered a constant. If the value is given without quotes, then the value of the expression is considered a reference.
- isConstant
- A flag that indicates whether the new value will be evaluated as a constant or a reference. This parameter is of type Boolean. If it is set to True (1), then the new value will be treated as a constant. If it is set to False (0), then the new value will be treated as a reference. This parameter only applies when the value parameter is a reference or constant and the custom property specified in the name parameter is a string or time type. This parameter has no meaning if the custom property is an integer, float, Boolean, or double type.