Example #1
0
        private Alignment GetDefaultAlignment(Alignment tplAlignment, HorizontalAlignmentValues defHorizontalAlignment)
        {
            var alignment = tplAlignment != null?tplAlignment.CloneNode(true) as Alignment : new Alignment();

            if (defHorizontalAlignment != HorizontalAlignmentValues.General)
            {
                alignment.Horizontal = defHorizontalAlignment;
            }
            return(alignment);
        }