Esempio n. 1
0
 private static BordersModel CreeateKnownBorder(KnownBorderColor borderColor, int width = 1)
 => new BordersModel
 {
     new BorderModel {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Left, Width = width, Show = YesNo.Yes
     },
     new BorderModel {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Top, Width = width, Show = YesNo.Yes
     },
     new BorderModel {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Right, Width = width, Show = YesNo.Yes
     },
     new BorderModel {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Bottom, Width = width, Show = YesNo.Yes
     }
 };
Esempio n. 2
0
 private static BordersCollection CreeateKnownBorder(KnownBorderColor borderColor)
 => new BordersCollection
 {
     new BaseBorder {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Left, Show = YesNo.Yes
     },
     new BaseBorder {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Top, Show = YesNo.Yes
     },
     new BaseBorder {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Right, Show = YesNo.Yes
     },
     new BaseBorder {
         Color = borderColor.ToString(), Position = KnownBorderPosition.Bottom, Show = YesNo.Yes
     }
 };