How does one change a style of an item in code, if the style has a rvprStyleProtect listed in Protection options?
Aleksander
Resetting a protected style
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
StyleProtect protects from ApplyTextStyle, but does not protect from ApplyStyleConversion (checking this protection option in OnStyleConversion is a good idea, but not necessary).
Or you can temporary remove this option from the style and restore it.
Or you can use nonediting operation: RV.GetItem(i).StyleNo := NewStyle, then call Format.
Or you can temporary remove this option from the style and restore it.
Or you can use nonediting operation: RV.GetItem(i).StyleNo := NewStyle, then call Format.