本文整理汇总了C#中Block.AddRight方法的典型用法代码示例。如果您正苦于以下问题:C# Block.AddRight方法的具体用法?C# Block.AddRight怎么用?C# Block.AddRight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block.AddRight方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddRow
public Block AddRow(Block block)
{
block = new Block(Brushes.Gray, block.Graphics, 440, 0, 43, 160);
block = block.AddRight(Brushes.LightGray, 267);
block = block.AddRight(Brushes.Yellow, 15);
return block;
}
示例2: AddRow
public Block AddRow(Block block)
{
block = block.AddBelow(Brushes.Red, 80, 357, 28);
block = block.AddRight(Brushes.LightGray, 98);
block = block.AddRight(Brushes.Gray, 267);
block = block.AddRight(Brushes.Red, 97);
new Block(Brushes.LightGray, block.Graphics, 750, 195, 81, 45);
new Block(Brushes.White, block.Graphics, 790, 160, 50, 195 - 160);
new Block(Brushes.Gray, block.Graphics, 385, 160, 11, 213 - 160);
return block;
}
示例3: 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;
}
示例4: 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;
}
示例5: AddRow
public Block AddRow(Block block)
{
block = block.AddRowLeftToRight(221, 828, 22,
new[] { 244, 262, 281, 287, 292, 326, 343, 353, 354, 363, 368, 384, 394, 410, 431, 445, 467, 474, 493, 498, 526, 545, 563, 582, 600, 615, 626, 640, 652, 661, 677, 685, 704, 716, 731, 736, 752, 767, 776, 786, 805, 832, 839, 855, 868, 895, 911, 928 },
new[] { Brushes.Red, Brushes.Yellow, Brushes.Black, Brushes.Yellow, Brushes.LightGray, Brushes.Yellow, Brushes.Blue, Brushes.Beige, Brushes.Red, Brushes.Beige, Brushes.Blue, Brushes.Black, Brushes.White, Brushes.DarkYellow, Brushes.Black, Brushes.Yellow, Brushes.DarkYellow, Brushes.Yellow, Brushes.Black, Brushes.White, Brushes.Yellow, Brushes.Black, Brushes.DarkYellow, Brushes.Red, Brushes.Yellow, Brushes.Black, Brushes.Red, Brushes.Yellow, Brushes.Beige, Brushes.Red, Brushes.Black, Brushes.Red, Brushes.Yellow, Brushes.Beige, Brushes.Red, Brushes.Black, Brushes.Yellow, Brushes.Black, Brushes.Red, Brushes.Yellow, Brushes.Red, Brushes.Yellow, Brushes.White, Brushes.Red, Brushes.Blue, Brushes.Yellow, Brushes.Black, Brushes.Red }
);
block.AddRight(Brushes.Yellow, height: 43, width: 50);
return block;
}
示例6: 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;
}
示例7: 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;
}
示例8: AddRow
public Block AddRow(Block block)
{
block = AddColumn1(block);
block = AddColumn2(block);
block = AddColumn3(block);
block = AddColumn4(block);
block = AddColumn5(block);
block = block.AddRight(Brushes.White, 717 - 531);
block = AddColumn7(block);
block = AddColumn8(block);
block = AddColumn9(block);
return block;
}
示例9: AddColumn4
private Block AddColumn4(Block block)
{
block = block.AddRight(Brushes.Invisible, width: 161, newOffsetLeft: 716);
int totalHeight = 0;
Block inner = block.AddInnerColumns(
new[] { Brushes.Gray, Brushes.Invisible, Brushes.Red, Brushes.Invisible, Brushes.Black, Brushes.Blue, Brushes.Invisible, Brushes.Black, Brushes.Blue },
new[] { 20, 42, 19, 16, 9, 18, 16, 9, 12 },
height: 18
);
totalHeight = inner.Height;
inner = block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Invisible, Brushes.Blue, Brushes.Invisible, Brushes.Red, Brushes.Invisible },
new[] { 62, 19, 21, 22, 19, 18 },
height: 17,
offsetTop: totalHeight
);
totalHeight += inner.Height;
inner = block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Red, Brushes.Invisible, Brushes.Black, Brushes.Red, Brushes.Black, Brushes.Invisible, Brushes.Blue },
new[] { 62, 19, 13, 12, 11, 16, 10, 18 },
height: 15,
offsetTop: totalHeight
);
totalHeight += inner.Height;
inner = block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Invisible, Brushes.Blue, Brushes.Invisible, Brushes.Red, Brushes.Invisible },
new[] { 62, 19, 21, 22, 19, 18 },
height: 17,
offsetTop: totalHeight
);
totalHeight += inner.Height;
inner = block.AddInnerColumns(
new[] { Brushes.Red, Brushes.Gray, Brushes.Yellow, Brushes.Red, Brushes.Blue, Brushes.Invisible, Brushes.Red, Brushes.Yellow, Brushes.Blue },
new[] { 20, 17, 7, 18, 19, 21, 22, 19, 18 },
height: 17,
offsetTop: totalHeight
);
inner = inner.AddBelow(Brushes.Yellow, height: 13, width: 20);
inner.AddBelow(Brushes.Blue, 17);
return block;
}
示例10: AddColumn5
private static Block AddColumn5(Block block)
{
block = block.AddRight(Brushes.Gray, 111);
Block inner = block.AddInnerColumns(
new[] { Brushes.Red, Brushes.LightGray, Brushes.Blue, Brushes.Yellow },
new[] { 32, 27, 30, 22 },
height: 27);
inner = inner.AddBelow(Brushes.Gray, 109);
inner.AddInner(Brushes.Red, 514 - 432, 472 - 415, 12, 42);
block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.White, Brushes.Red, Brushes.Yellow, Brushes.White, Brushes.Black },
new[] { 26, 18, 21, 9, 8, 29 },
height: 21,
offsetTop: 136);
return block;
}
示例11: 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;
}
示例12: 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;
}
示例13: 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;
}
示例14: AddColumn8
private static Block AddColumn8(Block block)
{
block = block.AddRight(Brushes.White, 77);
block.AddInnerRows(
new[] { Brushes.Red, Brushes.Blue, Brushes.Yellow, Brushes.Black, Brushes.Red, Brushes.Yellow, Brushes.Blue, Brushes.Black, Brushes.Yellow, Brushes.Red, Brushes.Invisible, Brushes.Red, Brushes.Black, Brushes.Yellow, Brushes.Red, Brushes.Blue, Brushes.Invisible, Brushes.Red, Brushes.Blue, Brushes.Yellow, Brushes.Blue },
new[] { 17, 17, 25, 14, 13, 23, 5, 16, 18, 9, 25, 21, 17, 16, 14, 13, 18, 18, 18, 17, 17 },
width: 26);
return block;
}
示例15: AddColumn9
private static Block AddColumn9(Block block)
{
block = block.AddRight(Brushes.Gray, 205);
block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Yellow },
new[] { 38, 42 },
height: 37);
block.AddInnerColumns(
new[] { Brushes.Red, Brushes.Blue, Brushes.White, Brushes.Red },
new[] { 15, 21, 20, 24 },
height: 20,
offsetTop: 82);
Block inner = block.AddInner(Brushes.White, 61, 46, 80, 52);
Block blueInner = inner.AddInnerColumns(
new[] { Brushes.Blue, Brushes.Invisible, Brushes.Yellow },
new[] { 48, 13, 64 },
height: 41,
offsetTop: inner.Height);
blueInner.AddInner(Brushes.Yellow, 21, 21, 12, 13);
block.AddInnerColumns(
new[] { Brushes.Blue, Brushes.White, Brushes.Blue, Brushes.Yellow, Brushes.White },
new[] { 19, 13, 24, 85, 45 },
height: 18,
offsetTop: block.Height - 18);
return block;
}