Cancelling sales order

Cancelling sales order

Hi.
What's the exact automated process flow when I decide to cancel a customer's order?
Is a credit note generated? Is the paid amount automatically refunded (e.g., when customer paid via PayPal)?

And what if I cancel one product of the order instead of the full order?

Thanks.