General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion XMetal Get the offset of the insertion point

  • gtoro

    XMetal Get the offset of the insertion point

    Participants 0
    Replies 1
    Last Activity 11 years, 5 months ago

    Hello,

    I am trying to get the offset of the insertion point within an element. All I have is the Selection object, which has IsInsertionPoint = true. I can also get the current node. I noticed there is an object DOMText with methods taking in an offset, for example, splitText.

    Example code:

    GlobalPtr global;
    global.CreateInstance(__uuidof(Global));

    SelectionPtr sel = global->Selection;

    if(sel->IsInsertionPoint)
    {
        // Get offset
    }

    Cheers,

    Gino

    Reply

    Derek Read

    Reply to: XMetal Get the offset of the insertion point

    The type of APIs you seem to need might exist but likely only in an experimental version of the product.

    It would be best to use our partner support channel to communicate these types of questions. The forum is generally meant for discussing things that may be of use to other clients and if we discuss undocumented or experimental things here it would end up confusing other people.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support