Pages: 1
Print
Author Topic: XMetal Get the offset of the insertion point  (Read 757 times)
gtoro
Member

Posts: 1


« on: April 20, 2011, 03:38:30 AM »

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
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1546



WWW
« Reply #1 on: April 20, 2011, 12:06:46 PM »

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.
Logged
Pages: 1
Print
Jump to:  

email us