Exemplo n.º 1
0
 public override void ConfigurePrototype(InteropPrototype prototype)
 {
     AddInstanceProperty(prototype, "name", self => self.Font.FontName, (self, value) => self.Font.FontName   = value.ConvertToString());
     AddInstanceProperty(prototype, "bold", self => self.Font.IsBold, (self, value) => self.Font.IsBold       = value.ConvertToBoolean().GetValueOrDefault());
     AddInstanceProperty(prototype, "italic", self => self.Font.IsItalic, (self, value) => self.Font.IsItalic = value.ConvertToBoolean().GetValueOrDefault());
     AddInstanceProperty(prototype, "underline", self => self.GetUnderline(), (self, value) => self.SetUnderline(value));
     AddInstanceProperty(prototype, "strikeout", self => self.Font.IsStrikeout, (self, value) => self.Font.IsStrikeout          = value.ConvertToBoolean().GetValueOrDefault());
     AddInstanceProperty(prototype, "size", self => self.Font.FontHeightInPoints, (self, value) => self.Font.FontHeightInPoints = (short)value.ConvertToInt32().GetValueOrDefault());
     AddInstanceProperty(prototype, "color", self => _interop.CreateColor(self.Font.GetXSSFColor()), (self, value) => self.Font.SetColor(_interop.UnwrapColor(value)));
 }
Exemplo n.º 2
0
 public JsValue GetBorderColorBottom()
 {
     return(_interop.CreateColor(CellStyle.BottomBorderXSSFColor));
 }