protected ChartShapeProperties GenerateChartShapeProperties(string colourHex, int width) { ChartShapeProperties chartShapeProperties2 = new ChartShapeProperties(); A::SolidFill solidFill1 = new A::SolidFill(); A::RgbColorModelHex rgbColorModelHex1 = new A::RgbColorModelHex() { Val = colourHex }; solidFill1.Append(rgbColorModelHex1); A::Outline outline2 = new A::Outline() { Width = width }; A::SolidFill solidFill2 = new A::SolidFill(); A::RgbColorModelHex rgbColorModelHex2 = new A::RgbColorModelHex() { Val = "000000" }; solidFill2.Append(rgbColorModelHex2); A::PresetDash presetDash1 = new A::PresetDash() { Val = A::PresetLineDashValues.Solid }; outline2.Append(solidFill2); outline2.Append(presetDash1); chartShapeProperties2.Append(solidFill1); chartShapeProperties2.Append(outline2); return chartShapeProperties2; }
protected override Legend GenerateLegend(LegendPositionValues position) { Legend legend1 = new Legend(); LegendPosition legendPosition1 = new LegendPosition() { Val = position }; Layout layout3 = GenerateLegendLayout(); ChartShapeProperties chartShapeProperties8 = new ChartShapeProperties(); A::SolidFill solidFill10 = new A::SolidFill(); A::RgbColorModelHex rgbColorModelHex10 = new A::RgbColorModelHex() { Val = "FFFFFF" }; solidFill10.Append(rgbColorModelHex10); A::Outline outline9 = new A::Outline() { Width = 3175 }; A::SolidFill solidFill11 = new A::SolidFill(); A::RgbColorModelHex rgbColorModelHex11 = new A::RgbColorModelHex() { Val = "000000" }; solidFill11.Append(rgbColorModelHex11); A::PresetDash presetDash7 = new A::PresetDash() { Val = A::PresetLineDashValues.Solid }; outline9.Append(solidFill11); outline9.Append(presetDash7); chartShapeProperties8.Append(solidFill10); chartShapeProperties8.Append(outline9); legend1.Append(legendPosition1); legend1.Append(layout3); legend1.Append(chartShapeProperties8); return legend1; }
protected ChartShapeProperties GenerateChartShapeProperties(int width) { ChartShapeProperties chartShapeProperties5 = new ChartShapeProperties(); A::Outline outline5 = new A::Outline() { Width = width }; A::SolidFill solidFill7 = new A::SolidFill(); A::RgbColorModelHex rgbColorModelHex7 = new A::RgbColorModelHex() { Val = "000000" }; solidFill7.Append(rgbColorModelHex7); A::PresetDash presetDash4 = new A::PresetDash() { Val = A::PresetLineDashValues.Solid }; outline5.Append(solidFill7); outline5.Append(presetDash4); chartShapeProperties5.Append(outline5); return chartShapeProperties5; }