NShape Reference
Diagram Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape >

NShape Reference
Diagram Class

Previous pageReturn to chapter overviewNext page

Defines the public operations and properties of a diagram.

Syntax

public class Diagram : IEntity

Description

Defines the public operations and properties of a diagram.

Public Events

Name

Description

Resized

Raised when the diagram size changes.

ShapeMoved

Raised when a shape of the diagram has been moved.

ShapeResized

Raised when a shape of the diagram has been resized.

ShapeRotated

Raised when a shape of the diagram has been roteted.

Public Properties

Name

Description

BackgroundColor

Specifies the background color of the diagram. This is the color of the lower right corner.

BackgroundGradientColor

Specifies the gradient background color. This is the color of the upper left corner.

BackgroundImage

Specifies a background image for the diagram.

BackgroundImageGamma

Specifies the gamma correction for the background image.

BackgroundImageGrayscale

Specifies if the image should be displayed as grayscale image.

BackgroundImageLayout

Specifies the layout of the image inside the diagram's bounds.

BackgroundImageTransparency

Specifies the transparency of the background image.

BackgroundImageTransparentColor

Specifies which color of the background image should be rendered 100% transparent.

DisplayService

Provides access to the diagrams IDisplayService.

EntityTypeName

Specifies the entity type name of the diagram.

Height

Specifies the height of the diagram in display units.

HighQualityRendering

Specifies if the diagram should be rendered with high quality or high speed.

Layers

Provides a collection of layers.

Name

The name of the diagram, used for identifying it.

Shapes

Provides a collection of shapes.

Size

Returns the size of the diagram.

Title

Localized display name.

Width

The width of the diagram in display units.

Public Methods

Name

Description

AddShapesToLayer

Assigns the given shapes to the specified layer(s).

AddShapeToLayer

Assigns the given shape to the specified layer(s).

Clear

Empties the diagram.

Constructor

Constructs a new diagram instance.

CreateImage

Creates an image of the diagram.

DrawBackground

Draws the diagram's background.

DrawShapes

Draws the diagram's shapes.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

GetShapeLayers

Returns a bitwise combination of LayerIds of all layers the given shape is assigned to.

RemoveShapeFromLayers

Removes the given shape from the specified layer(s).

RemoveShapesFromLayers

Removes the given shapes from the specified layer(s).

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape