Questions about shape rotation

I tried to rotate my shape with the ShapeRotate function, but failed. What should i do? Thank you!

Could you send a sample of the code you’re trying to execute? We can look it over and take it from there.

Thanks.

Here is my code:

Shapefile sf = new Shapefile();
sf.Open(filename3, null);
sf.Shape[0].Rotate(sf.Shape[0].Center.x, sf.Shape[0].Center.y, 90);
handle = axMap1.AddLayer(sf, true);

Hi @fairypwq do you still have this question?
Looking at your code you want to rotate this first shape 90 degrees.
Did it work? If not, did you get an error?