Layer Property-symbol

Hello,

Anyone has code to show and change layer properties? Like symbol (simple and categorized),label etc.

Thanks!

Did you had a look at the examples?
This one shows some different coloring: Minimal Distance