本文整理汇总了C#中Block.AddInner方法的典型用法代码示例。如果您正苦于以下问题:C# Block.AddInner方法的具体用法?C# Block.AddInner怎么用?C# Block.AddInner使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block.AddInner方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddColumn1
private static void AddColumn1(Block block)
{
Block inner =
block.AddInnerColumns(
new[] { Brushes.Black, Brushes.LightGray, Brushes.Red, Brushes.Black, Brushes.LightGray },
new[] { 128, 27, 20, 24, 18 },
height: 29);
inner.AddBelow(Brushes.Gray, height: 36);
inner = block.AddInner(Brushes.LightGray, offsetLeft: 223, width: 35, height: 33, offsetTop: 65);
inner.AddRight(Brushes.Red, width: 52);
inner = block.AddInner(Brushes.Blue, width: 76, height: 65, offsetLeft: 217);
inner.AddInner(Brushes.Yellow, width: 23, height: 19, offsetLeft: 25, offsetTop: 16);
inner.AddInnerColumns(
new[]
{
Brushes.LightGray, Brushes.DarkYellow, Brushes.Black, Brushes.Red, Brushes.Invisible, Brushes.Black,
Brushes.Red, Brushes.White, Brushes.Black, Brushes.Yellow, Brushes.Blue, Brushes.Black, Brushes.Red,
Brushes.Black, Brushes.Yellow, Brushes.Gray, Brushes.Blue
},
new[] { 25, 4, 20, 13, 17, 28, 8, 56, 31, 17, 4, 22, 19, 27, 33, 8, 50 },
height: 29,
offsetLeft: inner.Width);
}
示例2: AddColumn3
private static Block AddColumn3(Block block)
{
block = block.AddRight(Brushes.Blue, 76);
block.AddInner(Brushes.Yellow, 35, 39, 41);
Block inner = block.AddInner(Brushes.Red, 36, 37, offsetTop: 37);
inner = inner.AddBelow(Brushes.Gray, 58, width: 76);
inner.AddInner(Brushes.White, 300 - 271, 466 - 444, 13, 21);
inner = inner.AddBelow(Brushes.Red, 25, width: 32);
inner = inner.AddRight(Brushes.Yellow, 17);
inner.AddRight(Brushes.Blue, 27);
return block;
}
示例3: AddRow
public Block AddRow(Block block)
{
block = block.AddBelow(Brushes.Gray, height: 64, newStartOffsetLeft: 400, width: 313);
block.AddInner(Brushes.Yellow, width: 220);
block.AddInnerColumns(
new[] { Brushes.LightGray, Brushes.White },
new[] { 34, 34 },
height: 33,
offsetLeft: 43);
block.AddInner(Brushes.Black, offsetLeft: 84, offsetTop: 33, width: 29, height: 31);
return block;
}
示例4: AddColumn4
private static Block AddColumn4(Block block)
{
block = block.AddRight(Brushes.White, 96);
Block inner = block.AddInner(Brushes.Red, 390 - 357, 444 - 416, 33, 70);
inner.AddBelow(Brushes.Yellow, 15);
return block;
}
示例5: AddColumn2
private static Block AddColumn2(Block block)
{
block = block.AddRight(Brushes.White, 79);
Block inner = block.AddInner(Brushes.Gray, 39, 92);
inner.AddRowsRight(40, new[] { 358, 392, 438 }, new[] { Brushes.Beige, Brushes.Red, Brushes.Yellow });
return block;
}
示例6: AddColumn1
private static Block AddColumn1(Block block)
{
block = block.AddBelow(Brushes.LightGray, 157, 92, 77);
Block inner = block.AddInner(Brushes.Gray, height: 75, offsetTop: 82);
inner.AddInner(Brushes.Blue, 28, 28, 41, 23);
return block;
}
示例7: AddRow
public Block AddRow(Block block)
{
block = block.AddRowLeftToRight(221, 850, 66,
new[] { 320, 414, 515, 630, 722, 819, 897, 928 },
new[] { Brushes.LightGray, Brushes.Yellow, Brushes.LightGray, Brushes.Gray, Brushes.Red, Brushes.Gray, Brushes.Invisible, Brushes.LightGray }
);
block = new Block(Brushes.Invisible, block.Graphics, 221, 850, 1, 66, false);
Block inner = block.AddInner(Brushes.Yellow, offsetLeft: 341, offsetTop: 16, height: 28, width: 39);
inner.AddInner(Brushes.Black, width: 29);
block.AddInner(Brushes.Red, width: 31, offsetLeft: 676, offsetTop: 25, height: 24);
return block;
}
示例8: AddRow
public Block AddRow(Block block)
{
block = block.AddBelow(Brushes.Yellow, height: 98);
Block inner = block.AddInner(Brushes.White, width: 154, offsetLeft: 113);
inner.AddInner(Brushes.LightGray, width: 111, offsetLeft: 43, height: 66);
inner.AddInner(Brushes.Gray, width: 43, offsetTop: 44, height: 54);
return block;
}
示例9: AddColumn2
private static void AddColumn2(Block block)
{
block.AddInner(Brushes.Gray, width: 75, height: 69, offsetTop: 29, offsetLeft: 315);
block.AddInnerRows(
new[] { Brushes.Gray, Brushes.Blue, Brushes.Yellow, Brushes.Blue, Brushes.Red },
new[] { 36, 37, 38, 20, 26 },
width: 51,
offsetLeft: 492,
offsetTop: 29);
block.AddInnerRows(
new[] { Brushes.White, Brushes.Red },
new[] { 54, 60 },
width: 59,
offsetLeft: 543,
offsetTop: 29);
block.AddInner(Brushes.Red, width: 50, height: 50, offsetLeft: 602, offsetTop: 29);
}
示例10: AddRow
public Block AddRow(Block block)
{
block = block.AddBelow(Brushes.Black, 24, newStartOffsetLeft: 400, width: 313);
block.AddInnerColumns(
new[] { Brushes.Invisible, Brushes.Yellow, Brushes.Invisible, Brushes.Yellow, Brushes.White, Brushes.Invisible, Brushes.DarkRed, Brushes.Red, Brushes.Blue, Brushes.Red, Brushes.Yellow, Brushes.Red, Brushes.Yellow, Brushes.Red, Brushes.Invisible },
new[] { 43, 41, 31, 8, 72, 10, 8, 12, 14, 4, 8, 1, 9, 35, 17 });
block.AddInner(Brushes.Yellow, width: 9, height: block.Height - 4, offsetTop: 2, offsetLeft: 261);
return block;
}
示例11: AddColumn1
private Block AddColumn1(Block block)
{
block = block.AddBelow(Brushes.White, height: 114, newStartOffsetLeft: 131, width: 195);
Block inner = block.AddInner(Brushes.Yellow, offsetLeft: 16, width: 17, height: 45, offsetTop: 19);
block.AddInner(Brushes.Yellow, width: 15, offsetLeft: 33, offsetTop: 33, height: 31);
block.AddInnerColumns(
new[] { Brushes.Yellow, Brushes.DarkYellow },
new[] { 73, 51 },
height: 64,
offsetLeft: 48);
inner = block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Invisible, Brushes.Red },
new[] { 73, 25, 49 },
offsetTop: 64,
offsetLeft: 48,
height: 50);
inner.AddInner(Brushes.Yellow, offsetLeft: 30, offsetTop: 12, height: 21, width: 23);
inner.AddInner(Brushes.Gray, offsetLeft: 73, width: 25, height: 20);
return block;
}
示例12: AddColumn7
private static Block AddColumn7(Block block)
{
block = block.AddRight(Brushes.LightGray, 105);
Block inner = block.AddInner(Brushes.Yellow, 804 - 717, 53);
inner = inner.AddBelow(Brushes.Gray, 485 - 399, width: block.Width);
Block innerBlack = inner.AddInner(Brushes.Black, offsetLeft: 39, offsetTop: 32, height: 25, width: 28);
innerBlack.AddInner(Brushes.Blue, 13, 14, 15, 11);
Block bottom = inner.AddBelow(Brushes.White, 18);
bottom.AddInnerColumns(
new[] { Brushes.Red, Brushes.Beige, Brushes.White, Brushes.Black, Brushes.Blue, Brushes.Beige },
new[] { 24, 9, 12, 12, 12, 11 });
return block;
}
示例13: AddColumn2
private Block AddColumn2(Block block)
{
block = block.AddRight(Brushes.Invisible, width: 204);
block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Invisible, Brushes.Yellow, Brushes.Red, Brushes.Invisible, Brushes.Red, Brushes.Yellow },
new[] { 24, 60, 26, 22, 34, 28, 10 },
height: 19);
block.AddInnerColumns(
new[] { Brushes.Gray, Brushes.Blue },
new[] { 84, 120 },
height: 56,
offsetTop: 19);
block.AddInnerColumns(
new[] { Brushes.LightGray, Brushes.Red },
new[] { 84, 120 },
height: 39,
offsetTop: 75);
block.AddInner(Brushes.Red, width: 30, height: 25, offsetTop: 33, offsetLeft: 31);
block.AddInner(Brushes.Yellow, width: 25, height: 22, offsetTop: 33, offsetLeft: 131);
return block;
}
示例14: AddColumn6
private Block AddColumn6(Block block)
{
block = block.AddRight(Brushes.Invisible, width: 131);
block.AddInnerColumns(
new[] { Brushes.Invisible, Brushes.Gray, Brushes.LightGray },
new[] { 44, 46, 41 },
height: 42
);
block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.LightGray },
new[] { 44, 46 },
height: 41,
offsetTop: 42
);
block.AddInner(Brushes.LightGray, width: 44, height: 31, offsetTop: 83);
return block;
}
示例15: AddColumn5
private Block AddColumn5(Block block)
{
block = block.AddRight(Brushes.Red, width: 92);
block.AddInner(Brushes.Yellow, height: 42);
block.AddInner(Brushes.Yellow, height: 21, width: 22, offsetLeft: 31, offsetTop: 60);
block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.White, Brushes.Blue },
new[] { 23, 44, 25 },
height: 15,
offsetTop: 99
);
return block;
}