Is there any function or property in ArcObjects (.NET) which resolves paths to style files location? I want to avoid hardcoding strings like "C:\Program Files\ArcGIS\Desktop10.1\Styles". I am using ArcGIS 10.1 SP1.
ArcGIS Help says there are user and system folders:
ArcGIS Help says there are user and system folders:
- <install drive>:\Program Files\ArcGIS\Desktop10.1\Styles
- On Windows XP, it is located at <install drive>:\Documents and Settings\<username>\Application Data\ESRI\Desktop10.1\ArcMap
- On Windows Vista and Windows 7, it is located at <install drive>:\Users\<username>\AppData\Roaming\ESRI\Desktop10.1\ArcMap