Group: Forum Members
Last Active: 12 Years Ago
Posts: 71,
Visits: 1
|
nDrawingDocument.SizeToContent(nDrawingDocument.AutoBoundsMinSize, nDrawingDocument.AutoBoundsPadding, NFilters.Visible);
After using SizeToContent to size the document on the screen, I couldn't find a way to go back to normal. How to get back to normal after using this command?
|
Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054,
Visits: 4,009
|
Hi Volvick, please clarify what do you mean by "normal".
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 12 Years Ago
Posts: 71,
Visits: 1
|
I mean reset it to normal the way it was. For instance, by resizing to content, the drawing becomes smaller to fit in the screen. Now I want to reset to normal the way it was at the beginning.
|
Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054,
Visits: 4,009
|
Hi Volvick, The easiest way to restore the document after you have called the SizeToContent method is to use the Undo feature of the document’s history service: if (document.HistoryService.CanUndo()) document.HistoryService.Undo();
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 12 Years Ago
Posts: 71,
Visits: 1
|
Thanks, I thought there was another way beside that
|