Re: Bullets.
- From: Steve Rindsberg <abuse@xxxxxxxxxxxxx>
- Date: Mon, 25 Apr 2005 12:38:24 EDT
In article <308F6569-DA41-42C2-9A21-9DB6A2AB821F@xxxxxxxxxxxxx>, Technoknight
wrote:
> I actually want to programmatically insert rectangles behind bulleted text.
>
> Details: Suppose I have a slide which has got 4 bullet points with variable
> sentence lengths. Now i want to programmatically insert rectangles behind
> these bulleted text. Since there are 4 bulleted text, I want to insert 4
> rectangles which exactly bound their respective bullet points. Now I have
> been able to insert rectanlges. My main problem is to calculate the
> dimensions of these rectangles. Since each bullet sentence is of variable
> length (1 line, 3 line, 4 lines, 2 lines) I will require rectangles of
> variable height and width too. Now, if I try to calculate the bounding box
> then I will just get one bounding box...since all these 4 bullets are
> considered as a single text object and, hence, there is only one bounding
> box. But I want 4 rectangles. One approach that I was thinking of is that we
> can calculate the number of letters, the font, the size & font kerning to
> know the length of our bullet. But then also, how will I calculate the size
> of my rectangles.
>
> Can Anyone help me in this??
Each Paragraph is a bullet
Each Paragraph has a Sentences collection
Each Sentence has .BoundLeft, .BoundTop etc. properties
You can use those to define your rectangles
Of course, if you have something like this:
A short sentence. Followed by a longer sentence
that breaks to a new line.
The bounding box for the second sentence will cover up the bounding box for the
first sentence.
>
> Thanks.
>
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
.
- References:
- Bullets.
- From: technoknight
- Bullets.
- Prev by Date: Re: Powerpoint Can't save
- Next by Date: Re: Mass Editing Hyperlinks
- Previous by thread: Bullets.
- Next by thread: Adding a save icon in a powerpoint slide show file
- Index(es):
Relevant Pages
|