LayoutFarm.CustomWidgets.NinespaceBox.SetSize C# (CSharp) Method

SetSize() public method

public SetSize ( int width, int height ) : void
width int
height int
return void
        public override void SetSize(int width, int height)
        {
            base.SetSize(width, height);
            dockspaceController.SetSize(width, height);
        }
        public override void PerformContentLayout()

Usage Example

コード例 #1
0
        protected override void OnStartDemo(SampleViewport viewport)
        {
            //--------------------------------
            {
                //background element
                var bgbox = new LayoutFarm.CustomWidgets.SimpleBox(800, 600);
                bgbox.BackColor = Color.White;
                bgbox.SetLocation(0, 0);
                SetupBackgroundProperties(bgbox);
                viewport.AddContent(bgbox);
            }
            //--------------------------------
            //ninespace compartment
            ninespaceBox = new NinespaceBox(800, 600);
            ninespaceBox.ShowGrippers = true;
            viewport.AddContent(ninespaceBox);
            ninespaceBox.SetSize(800, 600);
            //--------------------------------


            //--------------------------------
            //test add some content to the ninespace box
            var sampleListView = CreateSampleListView();
            ninespaceBox.LeftSpace.ContentLayoutKind = BoxContentLayoutKind.VerticalStack;
            ninespaceBox.LeftSpace.AddChild(sampleListView);
        }
All Usage Examples Of LayoutFarm.CustomWidgets.NinespaceBox::SetSize