TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartAreaPieceRotational3D > Method >

 

GetParentShape

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartAreaPieceRotational3D > Method >

 

GetParentShape

 

 

Gets the parent of ChartPiece, i.e.,  the ChartShape.

 

 

 

Prototype :

 

object GetParentShape

(

        No Arguments

)

 

 

 

Example :

 

var ChartRootUnit = This.GetChartRootUnit();

var ChartShapeCnt = ChartRootUnit.GetShapeCount();

for(i = 0; i < ChartShapeCnt; i++) {

  var ChartShape = ChartRootUnit.GetShape(i);

  var ChartPieceCnt = ChartShape.GetPieceCount();

  for(j = 0; j < ChartPieceCnt; j++) {

     var ChartPiece = ChartShape.GetPiece(j);

     var ChartPieceParentShape = ChartPiece.GetParentShape();

     _TraceLn(ChartPieceParentShape.GetType());

  }

}

 

 

 

Available Events :

 

OnPostChartBuild