Exemplo n.º 1
0
        /// <summary>
        /// Creates an instance of a MarkupPointer object.
        /// </summary>
        /// <returns></returns>
        public MarkupPointer CreateMarkupPointer()
        {
            IMarkupPointerRaw pointer;

            MarkupServices.CreateMarkupPointer(out pointer);
            return(new MarkupPointer(this, pointer));
        }
Exemplo n.º 2
0
        //adds a segment to the list
        //used when a misspelled word is found
        public void AddSegment(IHighlightSegmentRaw segment, string wordHere, IMarkupServicesRaw markupServices)
        {
            IMarkupPointerRaw start, end;

            markupServices.CreateMarkupPointer(out start);
            markupServices.CreateMarkupPointer(out end);
            segment.GetPointers(start, end);
            if (!list.ContainsKey(start))
            {
                list.Add(start, new SegmentDef(segment, start, end, wordHere));
            }
        }