LineMarker Constructor

Syntax

PP.Ui.LineMarker (setting);

Parameters

settings. JSON object that contains values of component properties.

Description

The LineMarker constructor creates an instance of the LineMarker class.

Example

To execute the example, the page must contain the Speedometer component named speed1 (see Example of Creating a Fuel Gauge Unit). Add a button to the page, clicking which adds line markers:

<input TYPE="button" VALUE=" OK " ONCLICK="LMarks()">
<script>
function LMarks()
{
	var lmark = new PP.Ui.LineMarker(
	{
		Border:	{PPType: PP.SolidColorBrush, Color: "#00ffff"},
		Size:25,
		Offset: 5,
		BorderWidth: 15
	});
	speed1.setCenter(lmark);
}
</script>

After clicking the OK button the marker shown in speedometer center changes as follows:

See also:

LineMarker