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 7510325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:12:02+00:00 2026-05-29T23:12:02+00:00

I am porting some PowerPoint VBA macros into C# inside a VSTO add-on which

  • 0

I am porting some PowerPoint VBA macros into C# inside a VSTO add-on which automate certain tasks.

The macros were written for PP 2003 and I’m writing the VSTO add-on with PP 2010 as a target. The macros make heavy use of AutoShape-manipulation through the AutoShape.Adjustments object.

In VBA under 2003 i would access the X-Axis position of the “line-target” of a Legend-with-Line autoshape like this:

shape.Adjustments.Item(1) = someFloat

In c#/VSTO this seems to have changed to

shape.Adjustments[6] = someFloat;

There is now .Item collection in c#/VSTO.

Does anyone know where these values are documented, and most importantly, where they are documented for 2010?

Or is this all caused by switching to VSTO? If so, why would they choose to have you use different index numbers?

For now i’m stuck to manually test every Adjustments index in C# one after the other until i find the one that corresponds to the target in VBA.

  • 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-05-29T23:12:04+00:00Added an answer on May 29, 2026 at 11:12 pm

    I’ve never run across any documentation that explains what the various adjustments do and which shapes they apply to.

    As to the difference in indexing/syntax, a wild guess:

    In VBA, Shape.Adjustments.Item(x) and Shape.Adjustments(x) are equivalent; the default property for Adjustments (as with most collections) is .Item, so it’s not strictly necessary to explicitly use it.

    Perhaps in .NET, you index into all of the Adjustments properties, since (as I understand it) there’s no longer a default/implicit property. In other words, perhaps what you’re seeing is an offset that will be consistent for all shapes.

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

Sidebar

Related Questions

I'm porting some crufty C++ Windows-code to Linux, which uses functions called open and
I'm porting some code from one framework library to another, which requires me to
I'm porting some Java code to C#, and I ran into this idiom used
I am porting some Unix code to Windows which redirects stderr and stdout to
I'm porting some functionality to Rails, and I'm working with an existing table which
I'm porting some MATLAB functions to Scilab . The cool thing is that there
I am porting some queries from Access to T-SQL and those who wrote the
I'm porting some code from BSD sockets to Winsock, and I'm not sure how
Im working on porting some old ALP user accounts to a new ASP.Net solution,
I am porting some Core Data code from iPhone to Mac OS X. Problem

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.