Nevron Open Vision Documentation
Drawing Themes

Drawing themes in NOV Diagram are represented by the NDrawingTheme class. The class also contains public static read only fields that expose the predefined drawing themes included in NOV Diagram, for example: MyDrawNature, Office, Linear and so on.

Theme Structure

A drawing theme consists of the following components:

A drawing theme also contains the following properties:

Using Themes

The drawing contains a collection of drawing themes. You can access them through the Themes property of the drawing. Themes are usually referenced by ID. If a theme is not found in the drawing's theme collection, then it is searched for in the global registry of themes of the NDrawingTheme class.

The drawing page contains the following properties that lets you easily apply any component of a specific drawing theme to it:

Usually all of these theme id properties will be set to the same value, which means that only one drawing theme is used by the page. Setting them to different theme ids makes it possible to combine components from different drawing themes.

The following properties specify which theme variant to use for color and which for styles:

The same properties are also available in shapes. If not set locally, the values of these properties will be inherited by the page that owns the shape. Thus when you change the theme or variant of a drawing page, the appearance of all shapes in that page will also change, unless the theme, variant or local styles are applied to the shapes explicitly.

See Also
Send Feedback