<HTML> <HEAD> <meta charset="UTF-8"> <title>DockPanel.add - kvision</title> <link rel="stylesheet" href="../../../style.css"> </HEAD> <BODY> <a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.panel</a> / <a href="index.html">DockPanel</a> / <a href="./add.html">add</a><br/> <br/> <h1>add</h1> <a name="pl.treksoft.kvision.panel.DockPanel$add(pl.treksoft.kvision.core.Component, pl.treksoft.kvision.panel.SIDE)"></a> <code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">add</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.panel.DockPanel$add(pl.treksoft.kvision.core.Component, pl.treksoft.kvision.panel.SIDE)/child">child</span><span class="symbol">:</span> <a href="../../pl.treksoft.kvision.core/-component/index.html"><span class="identifier">Component</span></a><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.panel.DockPanel$add(pl.treksoft.kvision.core.Component, pl.treksoft.kvision.panel.SIDE)/position">position</span><span class="symbol">:</span> <a href="../-s-i-d-e/index.html"><span class="identifier">SIDE</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">DockPanel</span></a></code> <p>Adds a component to the dock container.</p> <h3>Parameters</h3> <p><a name="child"></a> <code>child</code> - child component</p> <p><a name="position"></a> <code>position</code> - position in the dock</p> <p><strong>Return</strong><br/> current container</p> <a name="pl.treksoft.kvision.panel.DockPanel$add(pl.treksoft.kvision.core.Component)"></a> <code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">add</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.panel.DockPanel$add(pl.treksoft.kvision.core.Component)/child">child</span><span class="symbol">:</span> <a href="../../pl.treksoft.kvision.core/-component/index.html"><span class="identifier">Component</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">DockPanel</span></a></code> <p>Overrides <a href="../-simple-panel/add.html">SimplePanel.add</a></p> <p>Adds given component to the current container.</p> <h3>Parameters</h3> <p><a name="child"></a> <code>child</code> - child component</p> <p><strong>Return</strong><br/> current container</p> </BODY> </HTML>