Method Prepare
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Rendering.dll
Prepare(CadDocument)
Sets a drawing up as the app sets one up on opening it, so that a picture of it is the canvas's: the canvas's measure of TrueType letters (once in the process: MTEXT of several looks is laid out with it), the fonts and support folders of the default settings, and their default lineweight. A drawing of Open(string) draws its text in the canvas's font until this is done and lays an MTEXT out with every letter 0.6 of its height wide. A display built before is laid out again, once: preparing a drawing again does nothing. The other members call it first, so it is needed only to read the bounds or the display of a drawing as the picture sees them.
public static void Prepare(CadDocument document)
Parameters
documentCadDocumentThe drawing.
Exceptions
- ArgumentNullException
Thrown when the document is null.