在ProEssentials控件中,能夠按照用戶的喜愛自定義圖表子集的顏色和線條以及點的風格。 this
--顏色是由SubsetColors屬性控制的。 code
--線條風格是由SubsetLineTypes屬性控制的。 three
--點風格是由SubsetPointTypes屬性控制的。 class
第一個指數(0)對應於第一子集,第二個指數(1)對應於第二子集,以此類推。 sed
示例代碼以下: 圖表
'//The following VB.NET example sets colors for three subsets // Pego1.PeColor.SubsetColors(0) = Color.FromArgb(255,255,0,0)'(0) sets first subset Pego1.PeColor.SubsetColors(1) = Color.FromArgb(255,0,255,0)'(1) sets second subset Pego1.PeColor.SubsetColors(2) = Color.FromArgb(255,0,0,255)'(2) sets third subset {The following Delphi example sets line styles for three subsets:} Graph.SubsetLineTypes[0] := PELT_THINSOLID;{[0]index sets first subset} Graph.SubsetLineTypes[1] := PELT_DASH; {[1]index sets second subset} Graph.SubsetLineTypes[2] := PELT_DOT; {[2]index sets third subset} //The following C/C++ example sets line styles for three subsets: int nTmpStyles[3]; nTmpStyles[0] = PELT_THINSOLID; nTmpStyles[1] = PELT_DASH; nTmpStyles[2] = PELT_DOT; PEvset(hPE, PEP_naSUBSETLINETYPES, nTmpStyles, 3); //Note that this 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);