當前位置: 首頁>>代碼示例>>C#>>正文


C# Block.AddRowLeftToRight方法代碼示例

本文整理匯總了C#中Block.AddRowLeftToRight方法的典型用法代碼示例。如果您正苦於以下問題:C# Block.AddRowLeftToRight方法的具體用法?C# Block.AddRowLeftToRight怎麽用?C# Block.AddRowLeftToRight使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Block的用法示例。


在下文中一共展示了Block.AddRowLeftToRight方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AddRow

        public Block AddRow(Block block)
        {
            block.AddRowLeftToRight(326, 240, 80,
                new[] { 431, 528, 719, 822, 848, 925 },
                new[] { Brushes.Yellow, Brushes.Blue, Brushes.White, Brushes.Red, Brushes.Yellow, Brushes.White });

            new Block(Brushes.Black, block.Graphics, 822, 288, 26, 20);

            block.AddRowLeftToRight(431, 240, 25,
                new[] { 465, 480, 500, 526, 537, 561, 578, 587, 602, 622, 646, 679, 700, 719, 744, 754, 773, 786, 793, 812, 820, 844, 869 },
                new[] { Brushes.Red, Brushes.LightGray, Brushes.Yellow, Brushes.Red, Brushes.Yellow, Brushes.Black, Brushes.LightGray, Brushes.Red, Brushes.Black, Brushes.Yellow, Brushes.Black, Brushes.Yellow, Brushes.Red, Brushes.Yellow, Brushes.Blue, Brushes.Beige, Brushes.Black, Brushes.Beige, Brushes.Yellow, Brushes.Gray, Brushes.Red, Brushes.Blue, Brushes.Yellow });

            return block;
        }
開發者ID:Elegant-Setup,項目名稱:Dennis-Rosenbaum,代碼行數:14,代碼來源:Row3.cs

示例2: AddRow

        public Block AddRow(Block block)
        {
            block = block.AddRowLeftToRight(326, 320, 26,
            new[] { 356, 384, 404, 430, 476, 509, 523, 540, 549, 571, 580, 600, 612, 627, 630, 647, 692, 707, 719, 730, 745, 755, 763, 777, 798, 815, 822, 848, 861, 867, 895, 937, 951 },
            new[] { Brushes.Gray, Brushes.Red, Brushes.Gray, Brushes.Blue, Brushes.Yellow, Brushes.Red, Brushes.Beige, Brushes.Red, Brushes.Black, Brushes.Yellow, Brushes.Black, Brushes.Blue, Brushes.Beige, Brushes.Red, Brushes.Yellow, Brushes.Black, Brushes.Yellow, Brushes.Black, Brushes.Blue, Brushes.Beige, Brushes.Black, Brushes.Beige, Brushes.Blue, Brushes.Black, Brushes.LightGray, Brushes.Yellow, Brushes.LightGray, Brushes.Black, Brushes.Beige, Brushes.Yellow, Brushes.Red, Brushes.Yellow, Brushes.Blue });

            block = new Block(Brushes.Yellow, block.Graphics, 248, 315, 286 - 248, 346 - 315);
            block = new Block(Brushes.LightGray, block.Graphics, 286, 265, 40, 50);
            block = block.AddBelow(Brushes.Blue, 31);
            return block;
        }
開發者ID:Elegant-Setup,項目名稱:Dennis-Rosenbaum,代碼行數:11,代碼來源:Row4.cs

示例3: 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;
        }
開發者ID:Elegant-Setup,項目名稱:Dennis-Rosenbaum,代碼行數:11,代碼來源:Row9.cs

示例4: 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;
        }
開發者ID:Elegant-Setup,項目名稱:Dennis-Rosenbaum,代碼行數:16,代碼來源:Row10.cs


注:本文中的Block.AddRowLeftToRight方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。