Keylee
Keylee

Reputation: 783

Excel VBA to C#

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.

Upvotes: 6

Views: 102

Answers (1)

Mathieu Guindon
Mathieu Guindon

Reputation: 71177

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

Selection.ShapeRange.Adjustments[1] = 90;

Upvotes: 3

Related Questions