Industrial Control Chart Control proessentials Tutorial: Changing the color and line style of a subset __proessentials

Source: Internet
Author: User

In the Proessentials control, you can customize the colors and lines of a subset of the chart and the style of the dots according to the user's preferences.

The color is controlled by the Subsetcolors property.

The line style is controlled by the Subsetlinetypes property.

The point style is controlled by the Subsetpointtypes property.

The first index (0) corresponds to the first subset, and the second index (1) corresponds to the second subset, and so on. The sample code is as follows:

'//the following vb.net example sets colors for three subsets//Pego1.PeColor.SubsetColors (0) = Color.FromArgb (255,255,0,
0) ' (0) sets-A-subset Pego1.PeColor.SubsetColors (1) = Color.FromArgb (255,0,255,0) ' (1) sets second Pego1.PeColor.SubsetColors (2) = Color.FromArgb (255,0,0,255) ' (2) sets third subset {The following Delphi example sets Lin E styles for three subsets:} Graph.subsetlinetypes[0]: = Pelt_thinsolid;
{[0]index Sets subset} GRAPH.SUBSETLINETYPES[1]: = Pelt_dash;
{[1]index sets second subset} GRAPH.SUBSETLINETYPES[2]: = Pelt_dot;
{[2]index sets third subset}//the following-C + + example sets line styles for three subsets:int];
Ntmpstyles[0] = Pelt_thinsolid;
NTMPSTYLES[1] = Pelt_dash;
NTMPSTYLES[2] = Pelt_dot;
 
Pevset (HPE, Pep_nasubsetlinetypes, Ntmpstyles, 3); This is the C example uses Pevset.
It could have also used Pevsetcell like ... int ntmpstyle;
Ntmpstyle = Pelt_thinsolid;
Pevsetcell (HPE, pep_nasubsetlinetypes, 0, &ntmpstyle); NTmpstyle = Pelt_dash;
Pevsetcell (HPE, Pep_nasubsetlinetypes, 1, &ntmpstyle);
Ntmpstyle = Pelt_dot; Pevsetcell (HPE, Pep_nasubsetlinetypes, 2, &ntmpstyle);

Proessentials Latest edition free download address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.