SharpLeaf Reference > SharpLeaf Methods > IncludeRule Method SharpLeaf.IncludeRule Method
Rule a line across frame – unless at the top of a new frame.
Overloads
- public bool IncludeRule();
- public bool IncludeRule(double weight);
- public bool IncludeRule(double weight,double length);
- public bool IncludeRule(double weight,double length,Alignment alignment);
- public bool IncludeRule(double weight,double length,Alignment alignment,Color color);
- public bool IncludeRule(double weight,double length,Alignment alignment,Color color,LineStyle style);
Result
Flag indicating whether a rule was actually drawn or not.
Example
// Two-point wide centered rule taking half the frame width
if ((lf.IncludeRule(2,-0.5))) {
// Add more space if rule was drawn (i.e. not at top of frame)
lf.IncludeSpace(lf.Style.SpaceAfter);
}
See also ...Text Inclusions | SharpLeaf Members
Send comments on this topic © Dyalog Ltd 2021
|