Esempio n. 1
0
        private MarqueeLabel setTextProp(TextProperty tp, object o)
        {
            RectShape rs = getSelectedRect();

            if (rs != null && rs.ItemType == AdItemType.Subtitle)
            {
                return(rs.setTextProperty(tp, o));
            }
            return(null);
        }
Esempio n. 2
0
        private void setSubtitleProp(Subtitle sub)
        {
            if (CanvasMain.Kernel.SelectedShapesCount == 1)
            {
                RectShape rect = getSelectedRect();

                if (sub.transparent)
                {
                    rect.setTextProperty(TextProperty.BackColor, Color.Transparent);
                }
                else
                {
                    rect.setTextProperty(TextProperty.BackColor, ColorEx.FromHtml(sub.backcolor));
                }
                rect.setTextProperty(TextProperty.FontName, sub.fontname);
                rect.setTextProperty(TextProperty.FontSize, sub.fontsize);
                rect.setTextProperty(TextProperty.Bold, sub.bold);
                rect.setTextProperty(TextProperty.Italic, sub.italic);
                rect.setTextProperty(TextProperty.Underline, sub.underline);
                rect.setTextProperty(TextProperty.Direction, sub.direction);
                rect.setTextProperty(TextProperty.Speed, sub.speed);
                rect.setTextProperty(TextProperty.Text, sub.text);
                rect.setTextProperty(TextProperty.FontColor, ColorEx.FromHtml(sub.fontcolor));
            }
        }