Esempio n. 1
0
        /// <summary>
        ///     Creates placeholder. Returns <c>NULL</c> if the specified shape is not placeholder.
        /// </summary>
        internal static MasterPlaceholder Create(OpenXmlCompositeElement pShapeTreeChild)
        {
            P.PlaceholderShape pPlaceholderShape =
                pShapeTreeChild.ApplicationNonVisualDrawingProperties().GetFirstChild <P.PlaceholderShape>();
            if (pPlaceholderShape == null)
            {
                return(null);
            }

            return(new MasterPlaceholder(pPlaceholderShape));
        }