LegendKey 對(duì)象

此頁(yè)沒(méi)有內(nèi)容條目
內(nèi)容

Chart

parchildLegend

spaceparchildLegendEntries (LegendEntry)

spacespaceparmultFont

spacespaceparchildLegendKey

spacespacespaceparmultBorder

spacespacespaceparchildInterior

代表指定的圖表圖例中的圖例標(biāo)示。圖例標(biāo)示用圖形表示圖例項(xiàng)與圖表中數(shù)據(jù)系列或趨勢(shì)線(xiàn)的對(duì)應(yīng)關(guān)系。圖例標(biāo)示與其相應(yīng)的數(shù)據(jù)系列或趨勢(shì)線(xiàn)的關(guān)系表現(xiàn)為,更改兩者之一的格式將同時(shí)更改另一個(gè)的格式。

LegendKey 對(duì)象用法

可用 LegendKey 屬性返回 LegendKey 對(duì)象。下例將圖表中圖例頂部的圖例標(biāo)示的背景色改為藍(lán)色。這將同時(shí)更改與該圖例項(xiàng)相應(yīng)的數(shù)據(jù)系列中所有數(shù)據(jù)點(diǎn)的格式。相應(yīng)的數(shù)據(jù)系列必須支持?jǐn)?shù)據(jù)標(biāo)志。

myChart.Legend.LegendEntries(1) _

    .LegendKey.MarkerBackgroundColorIndex = 5