Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Open Vision for NET
»
NOV Diagram for .NET
»
Resizing/Scale while obeying ResizeInAggregate property?
Resizing/Scale while obeying ResizeInAggregate property?
Post Reply
Resizing/Scale while obeying ResizeInAggregate property?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Jason Irby
Jason Irby
posted 7 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 59,
Visits: 77
Question: What command do I use to resize/scale a group programatically like the diagram view does when you drag the handle bars (i.e. obey ResizeInAggregate property of child shapes)?
Explanation: I have a complex object of a main shape and several child shapes around it's perimeter. Like:
The child shapes have all their ResizeInAggregate property set to RepositionOnly. So I only want to resize the main shape and re-position the child shapes. This works fine in the diagram view when I resize by dragging the handles:
But at times I need to programatically do it. When I tried to scale the group with
public virtual void Scale(CoordinateSystem system, float scaleX, float scaleY, NPointF pin);
it scaled the child shapes and not just re-positioned them. Like it ignored the ResizeInAggregate property:
I must be missing something.
Thanks in advance.
Reply
Like
0
Nevron Support
Nevron Support
posted 7 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi,
Instead of
Scale
, use the
ScaleModel
method of the group. For example, to make the groups 2 times larger in both width and height, use the following code:
group.ScaleModel(2, 2, group.ModelBounds.Center);
Best Regards,
Nevron Support Team
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search