Component placement using RobotStudio SDK

Can anyone show me how to place a component by two frames using the SDK? I can’t seem to find any method in the API reference.

I’ve tried Body.Transform.Translation.TransformPoint(fromFrame, toFrame); but doesn’t seem to work.

I want to do the same thing as the option in the image below.