SharpLeaf Reference > SharpLeaf Methods > IncludeRule Method > (Double,Double,Alignment,Color)

SharpLeaf.IncludeRule Method (Double,Double,Alignment,Color)

Draw a solid rule with specified weight, length and alignment.

public bool IncludeRule(
    double weight,
    double length,
    Alignment alignment,
    Color color
);
weight
Width of the ruled line in points (default to 1).
length
Length of the ruled line (positive is absolute size in points, negative is relative to current frame width) (defaults to ¯1 = frame width).
alignment
Horizontal alignment of the rule.
color
Color of the ruled line (defaults to Black).
return value
Whether a rule was actually drawn or not.

See also ...

SharpLeaf Members | SharpLeaf.IncludeRule Method


Send comments on this topic
© Dyalog Ltd 2021