This is a migrated thread and some comments may be shown as answers.

How to zoom to shape position in code behind?

1 Answer 55 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Michał
Top achievements
Rank 1
Michał asked on 23 Jul 2013, 03:43 PM
I've got my RadDiagram and many shapes on it, I let the end-user to select shape from the list and I'd like to zoom to selected shape. I get the shape position and use diagram zoom in method like this:

radDiagram.ZoomIn(1, shape.Position);

It does not zoom to shape, what am I doing wrong?

1 Answer, 1 is accepted

Sort by
0
Michał
Top achievements
Rank 1
answered on 24 Jul 2013, 07:48 AM
Ah, sorry for the duplicate, the answer is in this thread

"The FitTo() function does exactly what I need. "
Tags
Diagram
Asked by
Michał
Top achievements
Rank 1
Answers by
Michał
Top achievements
Rank 1
Share this question
or