Release Notes > 12.1.2.0 > Updates in This Release > Minor Enhancements > Inline Rules
  
Inline Rules
New for ALD 12.1.2.0 is the ability to use graphical rules inline provided by the new feature of being able to use fRule objects fStyle.rules[] array. This can be considered an additional trctrl rule control stream which can take up to eight (8) different rule definitions.
To use this feature, do something like this:
var s = formatting.currentStyle;
var r = new fRule();
r.sides = fRule.SIDE_BOX;
r.lineColor = "red";
r.lineStyle = fRuleLine.LINE_SOLID;
r.thickness = "1pt";

formatting.styleSave();
s.rules.addRule(r);