using System; namespace CPF.ReoGrid { [Serializable] public class RangeBorderInfoSet { public BorderPositions NonUniformPos { get { return this.hasNonUniformPos; } set { this.hasNonUniformPos = value; } } public bool IsNonUniform(BorderPositions pos) { return (this.hasNonUniformPos & pos) == pos; } public RangeBorderStyle Top { get { return this.top; } set { this.top = value; } } public RangeBorderStyle Right { get { return this.right; } set { this.right = value; } } public RangeBorderStyle Bottom { get { return this.bottom; } set { this.bottom = value; } } public RangeBorderStyle Left { get { return this.left; } set { this.left = value; } } public RangeBorderStyle InsideHorizontal { get { return this.horizontal; } set { this.horizontal = value; } } public RangeBorderStyle InsideVertical { get { return this.vertical; } set { this.vertical = value; } } public RangeBorderStyle Slash { get { return this.slash; } set { this.slash = value; } } public RangeBorderStyle Backslash { get { return this.backslash; } set { this.backslash = value; } } private BorderPositions hasNonUniformPos = BorderPositions.None; private RangeBorderStyle top; private RangeBorderStyle right; private RangeBorderStyle bottom; private RangeBorderStyle left; private RangeBorderStyle horizontal; private RangeBorderStyle vertical; private RangeBorderStyle slash; private RangeBorderStyle backslash; } }