HorizontalRuleFormat.widthPercent property. Gets or sets the length of the specified horizontal rule expressed as a percentage of the window width....to insert a horizontal rule shape, and customize its formatting...DocumentBuilder ( doc ); let shape = builder . insertHorizontalRule...