Question: How do I determine programmatically if my Sitecore renderings field inherits from standard value?

I can get my standard values for the rendering field with this...

```
var ss = StandardValuesManager.GetStandardValue(rootrenderingfield);

```

I can also parse the id of the rendering from this but really need to know inheritance so I can execute a rendering reference removal...

Answer: 
You can use the code below to check if it came from Standard Value or not.

```
Sitecore.Data.Fields.Field title = item.Fields["title"];
title.ContainsStandardValue(); //boolean

```

Or if you want to check the the value from the standardValue of the title field

```
title.GetStandardValue(); //string

```
If your looking to find ALL ITEMS where the "Renderings" field does NOT inherit from standard values, try this...

```
protected void CheckStdValues(Sitecore.Data.Items.Item root)
{
    foreach (Sitecore.Data.Items.Item itm in root.Children)
    {
        Sitecore.Collections.FieldCollection fields = itm.Fields;

        foreach (Sitecore.Data.Fields.Field fld in fields)
        {
            //fld = null if item does not contain such a field
            if (fld != null && !fld.ContainsStandardValue)
            {
                if (fld.Title == "Renderings" ) {                 
                    Response.Write(fld.Title.ToString() + " - " + itm.Paths.FullPath + "<br/>");
                }
            }
        }
        //Use recursion to loop through the entire tree under the root item
        CheckStdValues(itm);
    }
}

```