Trimming a surface by a plane

Is there a way to trim a surface with a plane? I could not find an option for this in the GUI or in the manual.

One other option would be to create a curve at the intersection of the surface and the plane, and then use the curve to trim the surface; but I could not find a way to do this either.

Could you give an example of a surface and what you’d like to do?