Identify whether a text in a shape has custom animation applied or not

S

sanilkp

Hi,

Steps:
1.Create a one slide presentation
2.Delete all existing placeholders
3.Insert a rectangle shape on to the slide
4.Type in a text say 'Hello' on the rectangle shape by right clicking
on it and choosing the 'Add Text' command.
5. Select the text entirely and apply a custom animation.

How can we programatically know whether the text attached to a shape
has custom aniamtion or not using Office XP or Office 2003 PowerPoint
Object Model?

We can know that a shape is animated or not using FindFirstAnimation of
the MainSequence object. Be we need to know whether the text attached
to the shape is custom animated or not.

Thanks,
Sanil
 
S

sanilkp

Thank you for the quick response.

Steps:
Inserted a shape.
Added a text into the shape.
Clicked on the shape border to select the shape.
Applied custom animation effect.
We call this as shape's custom animation effect.

If we use FindFirstAnimation we get the result as True. But we need it
as False because here we have not
applied any custom animation specific to the text by selecting the text
and applying custom animation.

We want to write a function with the prototype
bool HasTheTextAssociatedWithThisShapeAppliedCustomAnimationEffect(
Shape as theShape_in );

Inside this function we plan to extract the text attached to the shape
(say using TextRange.Text)
and check if the user has applied any custom animation to it (Selecting
the text inside the shape and applying the custom animation effect).
 
S

sanilkp

Hi Shyam

The following is our requirement


Text Attached to the
If we use FindFirstAnimation
Shape
Shape Required result
Result would be
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Custom Animation Effect Applied Yes
No False True
No
Yes True
True
Yes
Yes True
True
No
No False
False
 
S

sanilkp

Hi Shyam

Sorry... i made it in a tabular form
But when it appeard in the forum,
everything messed up.

The following is our requirement

Shape Text RR FFAR
Y N F Y
N Y T Y
N N F N
Y Y T Y

Y - Custom Animation Effect Applied
N - Custom Animation Effect Not Applied
T - True
F - False
RR - Required Result
FFAR - The result if we use FindFirstAnimation

Thanks
Sanil.
 
S

sanilkp

Hi Shyam

OK. We will use the Paragraph property to identify whether the text
attached to the shape is animated or not. You had told us how to do
this in reply to one of our earlier query(identify whether the effect
is applied to a shape or text).

Thanks for all the support and above all for the quick response
Sanil.
 

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