当前位置: 首页>>代码示例>>C#>>正文


C# Block.AddInnerRows方法代码示例

本文整理汇总了C#中Block.AddInnerRows方法的典型用法代码示例。如果您正苦于以下问题:C# Block.AddInnerRows方法的具体用法?C# Block.AddInnerRows怎么用?C# Block.AddInnerRows使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Block的用法示例。


在下文中一共展示了Block.AddInnerRows方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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);
        }
开发者ID:Elegant-Setup,项目名称:Dennis-Rosenbaum,代码行数:20,代码来源:Row11.cs

示例2: 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;
 }
开发者ID:Elegant-Setup,项目名称:Dennis-Rosenbaum,代码行数:9,代码来源:Row5.cs


注:本文中的Block.AddInnerRows方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。