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())); }
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); } }
private static bool IsLineFlowInverted(VerticalTextType type) { return(type == VerticalTextType.VerticalLtr || type == VerticalTextType.RotatedRtl); }