LayoutFarm.UI.SpacePart.SetBound C# (CSharp) Method

SetBound() public method

public SetBound ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void
        public void SetBound(int x, int y, int w, int h)
        {
            this.spaceX = x;
            this.spaceY = y;
            this.spaceWidth = w;
            this.spaceHeight = h;
            var uiContent = this.Content;
            if (uiContent != null)
            {
                uiContent.SetBounds(x, y, w, h);
            }
        }
        public void ArrangeContent()

Usage Example

Beispiel #1
0
        //public override string ToString()
        //{
        //    //if (dockSpaceConcept == SpaceConcept.NineSpaceFree)
        //    //{
        //    //    return "FREE_NINE_LAY (L" + dbug_layer_id + this.dbugLayerState + "):" + this.PostCalculateContentSize.ToString() + " of " + ownerVisualElement.ToString();
        //    //}
        //    //else
        //    //{
        //    //    return "dock layer (L" + dbug_layer_id + this.dbugLayerState + "):" + this.PostCalculateContentSize.ToString() + " of " + ownerVisualElement.ToString();
        //    //}
        //}
#endif

        protected static void SetDockBound(SpacePart dock, int x, int y, int newWidth, int newHeight)
        {
            if (dock == null)
            {
                return;
            }
            dock.SetBound(x, y, newWidth, newHeight);
        }
All Usage Examples Of LayoutFarm.UI.SpacePart::SetBound