Share via

Powerpoint "TextRange.IndentLevel" issue

Anonymous
2011-06-24T08:34:12+00:00

Hello!

I implement add-in to PowerPoint 2010 and we use Visual Studio 2010 and VSTO 4.0. Currently I work with multi-level bulleted and numbered lists and I faced with the following problem: in PowerPoint 2003 maximum depth level (indent level) in lists was 5, but in PowerPoint 2007 /  2010 it was increased to 9. I use property "TextRange.IndentLevel" (get / set) which informs/controls the level of depth in the list. It returns value from "1 to 9" but I can set it value only in range from "1 to 5" - not to 9 but only to 5.  If I try to assign value from 6 to 9 - I got COM exception.  So I even can't assign to this property it's own value if it more  than 5..

Please advise how I can assign to this property (TextRange.IndentLevel) values from 6 to 9, perhapse with the help of some method. Or possibly exists some workaround for this problem to simulate 6 - 9 indent level.

Thank you.

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-06-24T15:01:39+00:00

For anything targeting PPT 2007/2010 use the TextFrame2 object then you can set/get the new properties.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2011-06-24T11:27:25+00:00

I don't use VS2010 unless I really have to but I guess you will need to use TextFrame2 to access the new features.

In vba it would be

.TextFrame2.TextRange.Paragraphs(1).ParagraphFormat.IndentLevel = 7

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2011-06-24T16:05:56+00:00

    John,  Shyam,  great thanks! 

    I has been tried to use "TextRange" from  TextFrame2 and successfully set to ParagraphFormat.IndentLevel property  values from 6 to 9

    Thank you!

    Was this answer helpful?

    0 comments No comments