Ejemplo n.º 1
0
        public ExtractAnchor ToAPIExtractAnchor()
        {
            if (apiExtractAnchor != null)
            {
                return apiExtractAnchor;
            }
            else
            {
                ExtractAnchor result = new ExtractAnchor();

                result.LeftOffset = sdkTextAnchor.XOffset;
                result.TopOffset = sdkTextAnchor.YOffset;
                result.Text = sdkTextAnchor.AnchorText;
                result.Index = sdkTextAnchor.Occurrence;
                result.CharacterIndex = sdkTextAnchor.Character;
                result.AnchorPoint = new TextAnchorPositionConverter(sdkTextAnchor.Position).ToAPIAnchorPoint();
                result.Width = sdkTextAnchor.Width;
                result.Height = sdkTextAnchor.Height;

                return result;
            }
        }
Ejemplo n.º 2
0
 public TextAnchorConverter(ExtractAnchor apiExtractAnchor)
 {
     this.apiExtractAnchor = apiExtractAnchor;
 }