NShape Reference
ShapeType.CreatePreviewInstance Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ShapeType Class >

NShape Reference
ShapeType.CreatePreviewInstance Method

Previous pageReturn to chapter overviewNext page

Creates an exact clone of the given shape that uses preview styles.

Syntax

public Shape CreatePreviewInstance(Shape shape)

Description

Creates an exact clone of the given shape. All styles of the shape are replaced by the appropriate preview versions (transparent and gray scale by default).

Parameters

Name

Description

shape

Shape used as copy source for the returned clone.

Exceptions

Exception

Condition

ArgumentNullException

The given Shape is null.