I am using Aspose.Slides.Net 23.4.0, and .net 8.
When I run the code
private IOrderedEnumerable<IShape> SortShapes(ShapeCollection shapes)
{
var orderedShapes = shapes.OrderBy(s => s.Frame.Rectangle.X);
return orderedShapes;
}
I encounter the following error:
( , , Iystem.NullReferenceException: Object reference not set to an instance of an object.
(S , , B atnt32 )
) attring , oolean, Int32 ,
a(, , , , , I
) tnt32 , Boolean , ,
a
t .(& , Boolean& )
() at
ac,
t tor(TextFrame , , IBaseSlide , )
at .( , )
at .( , Single , Single , )
at .()
at Aspose.Slides.Shape.get_Frame()
It seems that the error occurs when I try to get the attribute shape.Frame.Retangle.X
. Could anyone gave me some advice to fix the error, please?
Thanks a lots.