NShape Reference
SetPreviewStyles Method

<< Click to Display Table of Contents >>

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

NShape Reference
SetPreviewStyles Method

Previous pageReturn to chapter overviewNext page

Sets the preview styles to a preview shape.

Syntax

protected virtual void SetPreviewStyles(IShape previewShape)

Description

A class with style properties of its own must override this method. The implementation calls the base class implementation and then sets the preview style for all its own styles to the passed shape. This is necessary for the preview shapes to be displayed correctly on the screen e.g. during a move operation.

The framework will call this function only when a DisplayService is available.

See also

Concepts: Drawing a shape