Access the icon for an item
Version:
You can use the Sitecore.Data.Items.Item.Appearance.Icon property to access the icon for an item. If the icon contains a themed image, you can use the Sitecore.Resources.Images.GetThemedImageSource method to convert the relative path to a full path. For example, to determine the full path of the icon for the /Sitecore/Content/Home item in the Master database:
You can use the Sitecore.Data.Items.Item.Appearance.Icon property to set the icon for an item. For example, to set the icon for the /Sitecore/Content/Home item in the Master database to the themed image network/16x16/home.png: