Layout() public abstract method

Determine the height and width of the box for the circumstances indicated by the transform. Also positions (and lays out) any contained boxes.
public abstract Layout ( LayoutInfo transform ) : void
transform LayoutInfo
return void
コード例 #1
0
ファイル: RowBox.cs プロジェクト: bbriggs/FieldWorks
		private Box ChildSetup(Box box, LayoutInfo transform, int maxBoxWidth, int left, int top)
		{
			var childTransform = transform.WithMaxWidthOffsetBy(maxBoxWidth, Left, Top); // todo: test
			box.Layout(childTransform);
			box.Left = left;
			box.Top = top;
			return box;
		}
コード例 #2
0
ファイル: RowBox.cs プロジェクト: vkarthim/FieldWorks
        private Box ChildSetup(Box box, LayoutInfo transform, int maxBoxWidth, int left, int top)
        {
            var childTransform = transform.WithMaxWidthOffsetBy(maxBoxWidth, Left, Top);             // todo: test

            box.Layout(childTransform);
            box.Left = left;
            box.Top  = top;
            return(box);
        }