How to determine the current in X rated capacitors

High volt X rated capacitors are used to make Transformerless power supply. But the current delivering capacity of such power supply is very low generally less than 100 mA. Let us see how to select a Capacitor to get required current