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(""); } }
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 ""; } }
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; } }