Open this page in the API Guide

DesignObjectViewModel.isInTemplate Property

Gets the value indicating whether or not this view model is part of the template or not.