DisplayRules

References
[IoId("00000000-08c9-4c81-9652-f4e3c90c6f06")] public sealed class DisplayRules : IEquatable<DisplayRules>, IStorable
A collection of DisplayRule where later rules override earlier ones.

Constructors

DisplayRules

#
public DisplayRules(
reader
)

DisplayRules

#
Create a new rule set.
public DisplayRules(
params DisplayRule[]
rules
)

Fields

Empty

#
Gets empty display rules.
public static readonly DisplayRules Empty

Properties

CitesOtherRules

#
Gets whether these rules cite another rule set by name.
public bool CitesOtherRules { get; }

ContainsCurveRules

#
Gets whether at least one of the rules affects the visual properties of curves.
public bool ContainsCurveRules { get; }

ContainsHideRules

#
Gets whether at least one of the rules is a RuleCommand.Hide instruction.
public bool ContainsHideRules { get; }

ContainsPointRules

#
Gets whether at least one of the rules affects the visual properties of points.
public bool ContainsPointRules { get; }

ContainsShowRules

#
Gets whether at least one of the rules is a RuleCommand.Hide instruction.
public bool ContainsShowRules { get; }

ContainsTintRules

#
Gets whether at least one of the rules affects the visual properties of values.
public bool ContainsTintRules { get; }

Count

#
Gets the number of rules in this ruleset.
public int Count { get; }

IsBlank

#
Gets whether this ruleset contains either no rules, or only non-functional rules.
public bool IsBlank { get; }

IsEmpty

#
Gets whether this ruleset is empty.
public bool IsEmpty { get; }

Indexers

this[]

#
public DisplayRule this[
index
] { get; }

Methods

Compile

#
Compile this ruleset by inserting the rules of other rulesets at CITE instructions, and by removing all non-functional rules.

DoesDash

#
Test whether this rule sets a curve dash pattern for a given value.
public bool DoesDash(
meta,
out Dash8
pattern
)
True if the meta implies shaping as per these rules.

DoesHide

#
Test whether this rule set hides the given value.
public bool DoesHide(
meta
Meta data to test.
)
True if the pear is hidden as per these rules.

DoesIcon

#
Test whether this rule sets a point symbol for a given value.
public bool DoesIcon(
meta,
style,
out float
angle
)
True if the meta implies shaping as per these rules.

DoesSize

#
Test whether this rule sets a point symbol radius for a given value.
public bool DoesSize(
meta,
out float
size
)
True if the meta implies shaping as per these rules.

DoesTint

#
Test whether this rule set tints the given value.
public bool DoesTint(
meta,
out Color
colour
)
True if the meta implies tinting as per these rules.

DoesWide

#
Test whether this rule sets a curve thickness for a given value.
public bool DoesWide(
meta,
out float
width
)
True if the meta implies shaping as per these rules.

Equals

#
Test for exact equality.
public bool Equals()

Equals

#
public override bool Equals(
obj
)
Object.Equals

EqualsFunctional

#
Test for functional equality. Comments and other non-functional notation such as whitespace may in fact differ.
public bool EqualsFunctional()

GetHashCode

#
public override int GetHashCode()
Explicit

IStorable.Store

#
void IStorable.Store(
writer
)
Store

Parse

#
public static DisplayRules Parse(
text
)

ToString

#
public override string ToString()
Object.ToString