Version

SetProperty Method (IChartComponent)

Sets the value of an arbitrary property.
Syntax
'Declaration
 
Function SetProperty( _
   ByVal propName As String, _
   ByVal newValue As Object _
) As Object
object SetProperty( 
   string propName,
   object newValue
)

Parameters

propName
The property name; if the property is nested, the property name may include '.' characters to qualify the property's scope.
newValue
The new value for the property.

Return Value

The former value of the requested property. If the property value is a ValueType, it is boxed. If the property could not be found, null is returned.
Remarks

Updates an untyped property value by name from the chart component through reflection. Changing appearance properties will also refresh the control by repainting/invalidating it.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also