Free Support Forum - aspose.com

How to get enumerator type of an LineFomatEx object

Hi,

Previously we used CellBorder for PPT

Cell pptCell;
GetEnum(pptCell.BorderLeft);
private void GetEnum( Cellborder cellBorder)
{
IEnumerator borderEnum = cellBorder.GetEnumerator();
}

Now we are using LineFormatEx for PPTX

CellEx pptCell;
GetEnum(pptCell.BorderLeft);
Private void GetEnum(LineFormatEx lineFormat)
{
IEnumerator borderEnum = lineFormat.
}
We cannot get the enumerator type for a LineFormatEx object.

Kindly let me know how i can get enumerator type of a LineFormatEx?

Hi Koundi,


I like to share that in case of PPTX the cells border are accessed directly without Enumerators. Please use the following sample code to serve the purpose. Please share, if I may help you further in this regard.

LineFormatEx bordoerDown = cell.BorderBottom;
LineFormatEx bordoerTop= cell.BorderTop;
LineFormatEx bordoerLeft = cell.BorderLeft;
LineFormatEx bordoerRight = cell.BorderRight;

Many Thanks,