Your stocks remain in your Demat account even when they are pledged. You continue to receive all corporate benefits, such as:
✔ Dividends
✔ Bonus Shares
✔ Stock Splits
✔ Rights Issues
Even though the stocks are pledged for margin, they still belong to you, and corporate actions will be credited to your account.