Exposing a method for OLE Automation purposes

I've created an OLE server in Delphi 16 and can now get and set any VCL's
properties from eg. Visual Basic. I can however not "see" any methods.

How do I expose a custom written method (or register it with OLE) so that it
can be called from an OLE client?