Nevron .NET Vision Documentation
Decorators

Decorators are elements which are used to "decorate" a shape in a decorator specific manner. The decorators of a shape are contained in an instance of the NDecoratorCollection class, which can be obtained from the Decorators property of the NShape class. Decorators are one of the optional shape elements and may not be available by default for each shape (see Shapes for more information).

Common Features

All types of decorators share a set of common features defined by the base NDecorator class. Decorators are by default not considered as "shape content", which means that shapes are by default not considered hit, if a shape decorator is hit. To include a decorator in the shape hit test set its ShapeHitTestable property to true.

Currently Available Decorators
Currently implemented are the following decorators:
Decorator Class Description
NFrameDecorator The frame decorator consists of a header and background elements. The background element fills the model bounds of the shape to which the decorator belongs. The header displays a text at the top of the shape model bounds. The header text is editable via in-place editing.
NExpandCollapseDecorator The expand-collapse decorator consists of a toggle symbol and background. The position of the decorator is controlled by a pin alignment and offset properties. The size of the decorator is manually specifiable. Clicking on the expand-collapse decorator toggles the expand-collapse state of the shape.
NShowHideSubtreeDecorator The show-hide subtree decorator consists of a toggle symbol and background. The position of the decorator is controlled by a pin alignment and offset properties. The size of the decorator is manually specifiable. Clicking on the show-hide subtree decorator toggles the visible state of the shape subtree.
Related Examples
Windows Forms: Document Object Model - Shapes - Decorators folder
See Also

 

 


©2017. Nevron Software LLC.

Send Feedback