Working with the element after adding into PageLayout Control ?

729
2
05-26-2013 07:26 PM
TaiBui
by
Occasional Contributor II
Hi,

I added text elements into the PageLayout Control (such as: "Hello world"), by using below statement:

pGraphicsContainer.AddElement(pElement, 0);

Then, I used the "select elements" arrow (on my tool bar) to select this word, now I want to creat a right button clicking event after selecting, then do something (such as: set font name/font size)

How can I indentify the Id of the elements and How can I create right button clicking event in this case ?

Thank you very much for your help !
0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor
Tai,

One way is to tag the text element name property using the IElementProperties3 Interface. This would be equivalent to you going into the text element in page layout and setting the name property under the size and position tab.

Duncan
0 Kudos
TaiBui
by
Occasional Contributor II
Tai,

One way is to tag the text element name property using the IElementProperties3 Interface. This would be equivalent to you going into the text element in page layout and setting the name property under the size and position tab.

Duncan


Thank you. I will try to use it. Do you know how to create right mouse button clicking event ?

Kind regards,
Tai
0 Kudos