public IList <Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings) { if (option.StyleName != PictureSlidesLabText.StyleNameDirectText && option.StyleName != PictureSlidesLabText.StyleNameBlur && option.StyleName != PictureSlidesLabText.StyleNameSpecialEffect && option.StyleName != PictureSlidesLabText.StyleNameOverlay) { designer.ApplyPseudoTextWhenNoTextShapes(); } if ((option.IsUseBannerStyle || option.IsUseFrostedGlassBannerStyle) && (option.GetTextBoxPosition() == Position.Left || (option.GetTextBoxPosition() == Position.Centre && option.GetBannerDirection() != BannerDirection.Horizontal) || option.GetTextBoxPosition() == Position.Right)) { designer.ApplyTextWrapping(); } else if (option.IsUseCircleStyle || option.IsUseOutlineStyle) { designer.ApplyTextWrapping(); } else { designer.RecoverTextWrapping(option.GetTextBoxPosition(), option.GetTextAlignment()); } ApplyTextEffect(option, designer); designer.ApplyTextGlowEffect(option.IsUseTextGlow, option.TextGlowColor); return(new List <Shape>()); }
public IList<Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape) { designer.ApplyPseudoTextWhenNoTextShapes(); if ((option.IsUseBannerStyle || option.IsUseFrostedGlassBannerStyle) && (option.GetTextBoxPosition() == Position.Left || option.GetTextBoxPosition() == Position.Centre || option.GetTextBoxPosition() == Position.Right)) { designer.ApplyTextWrapping(); } else if (option.IsUseCircleStyle || option.IsUseOutlineStyle) { designer.ApplyTextWrapping(); } else { designer.RecoverTextWrapping(); } ApplyTextEffect(option, designer); designer.ApplyTextGlowEffect(option.IsUseTextGlow, option.TextGlowColor); return new List<Shape>(); }
public IList<Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings) { if (option.StyleName != TextCollection.PictureSlidesLabText.StyleNameDirectText && option.StyleName != TextCollection.PictureSlidesLabText.StyleNameBlur && option.StyleName != TextCollection.PictureSlidesLabText.StyleNameSpecialEffect && option.StyleName != TextCollection.PictureSlidesLabText.StyleNameOverlay) { designer.ApplyPseudoTextWhenNoTextShapes(); } if ((option.IsUseBannerStyle || option.IsUseFrostedGlassBannerStyle) && (option.GetTextBoxPosition() == Position.Left || (option.GetTextBoxPosition() == Position.Centre && option.GetBannerDirection() != BannerDirection.Horizontal) || option.GetTextBoxPosition() == Position.Right)) { designer.ApplyTextWrapping(); } else if (option.IsUseCircleStyle || option.IsUseOutlineStyle) { designer.ApplyTextWrapping(); } else { designer.RecoverTextWrapping(option.GetTextBoxPosition(), option.GetTextAlignment()); } ApplyTextEffect(option, designer); designer.ApplyTextGlowEffect(option.IsUseTextGlow, option.TextGlowColor); return new List<Shape>(); }