Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm trying change simple VBA code to C#
Dim oActiveSheet As Sheet
Set oActiveSheet = ThisApplication.ActiveDocument.ActiveSheet
Dim oDrawingCurve As DrawingCurve
Set oDrawingCurve = oActiveSheet.DrawingViews(1).DrawingCurves.Item(1)
I tried like this:
DrawingView oDrawingView = oActiveSheet.DrawingViews[1];
DrawingCurvesEnumerator oDrawingCurvesEnumerator = oDrawingView.DrawingCurves;
DrawingCurve oDrawingCurveNew = (DrawingCurve)oDrawingView.DrawingCurves[1];
//or
//DrawingCurve oDrawingCurveNew = oDrawingCurvesEnumerator[1];
But it doesn't work.
The same thing happens when he wants to download the Balloon Leader:
LeaderNodesEnumerator oLeader = oBalloon.Leader.AllNodes;
LeaderNode ooLeader = oLeader[1];
Solved! Go to Solution.