Esempio n. 1
0
        public static string GetTextEffectAlignment(MsoTextEffectAlignment alignment)
        {
            switch (alignment)
            {
            case MsoTextEffectAlignment.msoTextEffectAlignmentLeft:
                return("left");

            case MsoTextEffectAlignment.msoTextEffectAlignmentCentered:
                return("centered");

            case MsoTextEffectAlignment.msoTextEffectAlignmentRight:
                return("right");

            case MsoTextEffectAlignment.msoTextEffectAlignmentLetterJustify:
                return("letterJustify");

            case MsoTextEffectAlignment.msoTextEffectAlignmentStretchJustify:
                return("stretchJustify");

            case MsoTextEffectAlignment.msoTextEffectAlignmentWordJustify:
                return("wordJustify");

            case MsoTextEffectAlignment.msoTextEffectAlignmentMixed:
                return("mixed");

            default:
                return("");
            }
        }
Esempio n. 2
0
 public static string GetTextEffectAlignment(MsoTextEffectAlignment alignment)
 {
     switch (alignment)
     {
         case MsoTextEffectAlignment.msoTextEffectAlignmentLeft:
             return "left";
         case MsoTextEffectAlignment.msoTextEffectAlignmentCentered:
             return "centered";
         case MsoTextEffectAlignment.msoTextEffectAlignmentRight:
             return "right";
         case MsoTextEffectAlignment.msoTextEffectAlignmentLetterJustify:
             return "letterJustify";
         case MsoTextEffectAlignment.msoTextEffectAlignmentStretchJustify:
             return "stretchJustify";
         case MsoTextEffectAlignment.msoTextEffectAlignmentWordJustify:
             return "wordJustify";
         case MsoTextEffectAlignment.msoTextEffectAlignmentMixed:
             return "mixed";
         default:
             return "";
     }
 }
Esempio n. 3
0
 private void SetTextAlignment(MsoTextEffectAlignment alignment)
 {
     foreach (var shape in TextShapes)
     {
         ShapeUtil.AddTag(shape, Tag.OriginalTextAlignment, 
             StringUtil.GetTextEffectAlignment(shape.TextEffect.Alignment));
         shape.TextEffect.Alignment = alignment;
     }
 }
 private void SetTextAlignment(MsoTextEffectAlignment alignment)
 {
     foreach (var shape in TextShapes)
     {
         shape.TextEffect.Alignment = alignment;
     }
 }