Search
Border Class
Remarks See Also
 






Represents a panel that draws a border around its child components.

Namespace: MindFusion.Diagramming
File: Border.js

 Syntax

JavaScript  Copy Code

// class
Border.prototype = {}

 Remarks

Border objects can be used as components of CompositeNode.

 Example

This part of a custom CompositeNode's JSON template shows Text component inside a Border:

JavaScript  Copy Code
{
    component: "Border",
    gridColumn: 0,
    name: "SurnameBorder",
    pen: "yellow",
    strokeThickness: 2,
    brush: "green",
    margin: "2, 0, 0, 0",
    children:
    [
        {
            component: "Text",
            name: "Surname",
            autoProperty: true,
            text: "",
            font: "Arial"
        }
    ]
},

 Inheritance Hierarchy

 See Also