SetCustomPropertyValue Method (GraphicControlFactory)
- Last UpdatedSep 29, 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.
Target Platforms:
- Windows 10 Enterprise, IoT Enterprise 2019 LTSC (1809)
- Windows 10 Enterprise 2021 LTSC (21H2)
- Windows 10 IoT Enterprise (Only) 2021 LTSC (21H2)
- Windows 11 Enterprise, IoT Enterprise 2024 LTSC 24H2
- Windows Server 2019 LTSC (Datacenter, Essentials, Standard)
- Windows Server IoT 2019 LTSC
- Windows Server 2022 LTSC Standard and Datacenter
- Windows Server 2025 LTSC Standard and Datacenter