Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8508063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:03:08+00:00 2026-06-11T03:03:08+00:00

I wrote a PowerPoint 2010 addin that allows the user to create pairs of

  • 0

I wrote a PowerPoint 2010 addin that allows the user to create pairs of shapes. These pairs are synchronized (e.g. position, color, text…). The pairs are stored as objects of the following class:

class Pair
{
     Shape LeftShape { get; set; }
     Shape RightShape { get; set; }
}

If a Shape is modified, where there is a pair that contains the Shape, the other shape is updated.

It is possible to define pairs on the master layout. The synchronization works on the master. If the pair is made of two placeholders and I create a slide based on the master, of course, the new shapes are not synchronized. Is there a way to find the shape’s master equivalent and vice versa? The algorithm then would be:

 s1's modification is recognized
 if s1 is a placeholder
     find s1's equivalent in master -> m1
     look up the partner of m1 -> m2
     find the shape in the current slide that is based on m2 -> s2
     update s2

I had a look at the Name and Idproperties of the new shapes. But they differ from the properties of the master shapes.

Btw, is there a nice way to determine, if a shape is a placeholder? My current approach is to query the PlaceholderFormat which throws an exception, if the shape is no placeholder. But this is definitely not a good way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:03:09+00:00Added an answer on June 11, 2026 at 3:03 am

    It is possible to define pairs on the master layout.

    I’m curious: how?

    The Shape’s .Type property will indicate whether it’s a placeholder or some other shape type.

    If the shape is msoPlaceholder ( 14 ) it’s a placeholder. In that case, its .PlaceholderFormat.Type property tells you which type of placeholder it is, and if it’s a type that can hold more than one type of content, its .PlaceholderFormat.ContainedType tells you whether it contains a chart, object, picture, etc.

    You might instead consider using tags to indicate pairs. To “tag” the members of a shape range, using the currently selected shapes as an example range:

    Dim oSh As Shape
    For Each oSh In ActiveWindow.Selection.ShapeRange
        oSh.Tags.Add "MagicPair", "TagValue"
    Next
    

    To return the other half of one of your pairs, write a simple function that looks at each shape on the current slide and checks to see if its MagicPair tag value matches that of the first shape.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to write an addin for PowerPoint that whenever any PowerPoint
I'm writing a PowerPoint 2010 AddIn. In a nutshell this is what I do:
I wrote a php code that display error in red color. But somehow, this
I wrote a webpage where a user can enter a log entry that is
I am trying to write an Add-In to PowerPoint that does basically one thing:
I wrote a PHP script that retrieves values from a MySQL Query. I used
I was wondering if there was any way that I could write in Powerpoint
I am doing project in powerpoint 2007 automation. In that i am using macro
I want to write an Android remote control application that allows people to navigate
I'd like to create a PowerPoint (not Javascript/HTML/PDF/Keynote/.mov) using code (any language, C preferred)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.