6

I am converting some codes from Excel VBA to C# and run into this problem. I am not sure the equivalent of this code in c#. Intellisence wasn't very helpful :(

Selection.ShapeRange.Adjustments.Item(1) = 90

I managed to get as far as Adjustment in c# but there is no Item property.

1
  • If you look in the object browser .Item is the default property of the Adjustments collection. In most cases a default property on a collection in VBA is equivalent to an indexer in C#. Commented Jul 20, 2015 at 10:33

1 Answer 1

3

Per MSDN it seems the Adjustments property has an indexer, so you could do this:

Selection.ShapeRange.Adjustments[1] = 90;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.