General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › XMetal Get the offset of the insertion point
-
gtoro April 20, 2011 at 9:38 am
XMetal Get the offset of the insertion point
April 20, 2011 at 9:38 amParticipants 0Replies 1Last Activity 11 years, 9 months agoHello,
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
Derek Read April 20, 2011 at 6:06 pm
Reply to: XMetal Get the offset of the insertion point
April 20, 2011 at 6:06 pmThe 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.
-
AuthorPosts
- You must be logged in to reply to this topic.