Re: Bullets.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
================================================


.



Relevant Pages

  • Bullets.
    ... I actually want to programmatically insert rectangles behind bulleted text. ... Suppose I have a slide which has got 4 bullet points with variable ... sentence lengths. ... if I try to calculate the bounding box ...
    (microsoft.public.powerpoint)
  • Re: Help with Multi level bulleted text.
    ... In one module I have to add rectangles ... > to the slides behind each bulleted text in the bullet type paragraphformat ... I broke down that whole paragraph in individual textboxes ...
    (microsoft.public.powerpoint)
  • Inserting rectangles.
    ... In one module I have to add rectangles ... to the slides behind each bulleted text in the bullet type paragraphformat ... textbox. ...
    (microsoft.public.powerpoint)
  • Help with Multi level bulleted text.
    ... In one module I have to add rectangles ... to the slides behind each bulleted text in the bullet type paragraphformat ... textbox. ...
    (microsoft.public.powerpoint)
  • Re: Overlapping items in the Tk canvas
    ... overlaps. ... but it's simply finding items prior to the tagOrId in the ... fall within the object (rectangles near the edge will do nicely). ... If not, the bounding box returned a false positive, otherwise you ...
    (comp.lang.tcl)