NShape Reference
Design Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
Design Class

Previous pageReturn to chapter overviewNext page

Contains all styles used in a project.

Syntax

public class Design : IStyleSetIEntity

Description

Contains all styles used in a project.

Public Properties

Name

Description

Name

The name of the design.

CapStyles

Provides access to the design's CapStyleCollection.

CharacterStyles

Provides access to the design's CharacterStyleCollection.

ColorStyles

Provides access to the design's ColorStyleCollection.

FillStyles

Provides access to the design's FillStyleCollection.

LineStyles

Provides access to the design's LineStyleCollection.

ParagraphStyles

Provides access to the design's ParagraphStyleCollection.

Styles

Provides read only access to all styles in the design.

Title

Specifies the title of the design. If no title was specified, the name will be used.

Public Methods

Name

Description

Constructor

Constructs a new design

AddStyle

Adds a new style to the design. A preview style will be created and associated with the style.

AssignStyle

Assigns the given style to the design. If the design contains a style with the same name, all properties of the given style will be copied into this style.

Clear

Disposes and deletes all styles of the design.

ContainsStyle

Returns true if the design contains the given style.

CreatePreviewStyle

Creates a style used for drawing previews based on the given style.

FindMatchingStyle

Can be used as callback for Style.Assign.

If the design contains a style with the same name and the same type as the given style, it will be returned.
Otherwise, null/Nothing will be returned.

FindStyleByName

If the design contains a style matching the given name and the given type, it will be returned.
Otherwise, null/Nothing will be returned.

GetPreviewStyle

Returns the preview style associated with the given style.

IsStandardStyle

Returns true if the given style is a standard style.

RemoveStyle

Removes the given Style from the design.

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape