powerpoint 2007 addin using C# + hiding text

S

satya here

I have to create a powerpoint addin which will be used to add some text in a
shape or a textbox in powerpoint 2007.The text which i have to add in the
shape is basically a key value pair.The key portion of the text has to be
hidden.In word2007 there is a hidden property for texts but there is no
hidden property in powerpoint.How do i do it?Is there any other way such as
adding tags or identifiers to the text
 
S

Satya Prakash Tripathi

You can't add tags to text but you can add them to the text box shape, the
slide the shape is on, or the presentation that holds all of the slides.

Shapes, slides and presentations have a .Tags property that includes an .Add
method and a tags collection, so for example in VBA:

' Assuming you've got a reference to the shape in oSH

' Add a tag (key/value pair)
oSh.Tags.Add "TagName", "TagValue"

' Let's see what we just did:
Debug.Print oSh.Tags("TagName")

==============================
PPT Frequently Asked Questionshttp://www.pptfaq.com/

PPTools add-ins for PowerPointhttp://www.pptools.com/

Thanks for the reply.Each shape will be containing multiple key value
pairs thats why i will have to attach a key to a text and not to the
text box.is there any way of hiding a text?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top