LayoutFarm.Demo_SingleTextLine_With_Compartment.UINinespaceBox.GetPrimaryRenderElement C# (CSharp) Méthode

GetPrimaryRenderElement() public méthode

public GetPrimaryRenderElement ( RootGraphic rootgfx ) : RenderElement
rootgfx RootGraphic
Résultat RenderElement
            public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx)
            {
                if (!this.HasReadyRenderElement)
                {
                    var renderE = base.GetPrimaryRenderElement(rootgfx);
                    //------------------------------------------------------
                    renderE.AddChild(boxLeftTop);
                    renderE.AddChild(boxRightTop);
                    renderE.AddChild(boxLeftBottom);
                    renderE.AddChild(boxRightBottom);
                    //------------------------------------------------------
                    renderE.AddChild(boxLeft);
                    renderE.AddChild(boxRight);
                    renderE.AddChild(boxTop);
                    renderE.AddChild(boxBottom);
                    //grippers
                    renderE.AddChild(gripperLeft);
                    renderE.AddChild(gripperRight);
                    renderE.AddChild(gripperTop);
                    renderE.AddChild(gripperBottom);
                    //------------------------------------------------------
                }
                return base.GetPrimaryRenderElement(rootgfx);
            }