Beispiel #1
0
        protected virtual void Assign(Line line)
        {
            Start            = line.Start;
            End              = line.End;
            AnchorPoint      = line.AnchorPoint;
            Position         = line.Position;
            VerticalTextType = line.VerticalTextType;

            Sections.Clear();
            Sections.AddRange(line.Sections.Select(s => (Section)s.Clone()));
        }
Beispiel #2
0
        private static int GetTextDirectionId(VerticalTextType type)
        {
            switch (type)
            {
            case VerticalTextType.VerticalRtl:
            case VerticalTextType.VerticalLtr:
                return(2);

            case VerticalTextType.RotatedLtr:
            case VerticalTextType.RotatedRtl:
                return(3);

            default:
                return(0);
            }
        }
Beispiel #3
0
 private static bool IsLineFlowInverted(VerticalTextType type)
 {
     return(type == VerticalTextType.VerticalLtr ||
            type == VerticalTextType.RotatedRtl);
 }