A
Alex Bendig
Hi all,
How can I determine if a shape shp that is a defaultShape contains actual
text or just the default text ("Click to add title", etc.)? For both all
conditions below appear to be true.
if (shp.HasTextFrame == Microsoft.Office.Core.MsoTriState.msoTrue)
{
if (shp.TextFrame.HasText == Microsoft.Office.Core.MsoTriState.msoTrue)
{
if (shp.Type == Microsoft.Office.Core.MsoShapeType.msoPlaceholder)
{
}
}
}
Maybe the handling of default text is something that PowerPoint does
internally without exposing the information at all, though I certainly hope,
someone is able to prove the opposite ;-)
Thanks and regards,
Alex
How can I determine if a shape shp that is a defaultShape contains actual
text or just the default text ("Click to add title", etc.)? For both all
conditions below appear to be true.
if (shp.HasTextFrame == Microsoft.Office.Core.MsoTriState.msoTrue)
{
if (shp.TextFrame.HasText == Microsoft.Office.Core.MsoTriState.msoTrue)
{
if (shp.Type == Microsoft.Office.Core.MsoShapeType.msoPlaceholder)
{
}
}
}
Maybe the handling of default text is something that PowerPoint does
internally without exposing the information at all, though I certainly hope,
someone is able to prove the opposite ;-)
Thanks and regards,
Alex