GH_TreeRules
Represents an entire data tree rule set.
Inheritance Hierarchy
System.Object
Grasshopper.Kernel.Data.GH_TreeRules
Namespace: Grasshopper.Kernel.Data
Assembly: Grasshopper (in Grasshopper.dll)
Syntax
public sealed class GH_TreeRules
The GH_TreeRules type exposes the following members.
Constructors
Name
Description
Public Method
GH_TreeRules
Constructs a new rule set for testing data trees. Unless you know exactly what you are doing, use the FromString() static method instead.
Properties
Name
Description
Public Property
HasItemRule
Gets whether this rule set has a defined index rule.
Public Property
HasPathRules
Gets whether this rule set has any path rules.
Public Property
PathRuleCount
Gets the number of defined path rules.
Methods
Name
Description
Public Method
Apply(GH_Path)
Apply all the local rules to a path.
Public Method
Apply(GH_Path, Int32)
Apply all the local rules to a path+index combination.
Public Method
Static Member
FromString
Attempt to parse a Pattern string.
Public Method
ToString
(Overrides Object.ToString..)
Fields
Name
Description
Public Field
Static Member
AllowedChars
Public Field
Static Member
AndOperator
Public Field
Static Member
AnyNumbersSymbol
Public Field
Static Member
AnyNumberSymbol
Public Field
Static Member
ItemBrackets
Public Field
Static Member
ItemCloseBracket
Public Field
Static Member
ItemOpenBracket
Public Field
Static Member
NotOperator
Public Field
Static Member
OrOperator
Public Field
Static Member
PathBrackets
Public Field
Static Member
PathCloseBracket
Public Field
Static Member
PathOpenBracket
Public Field
Static Member
PathSeparator
Public Field
Static Member
RangeSymbol
Public Field
Static Member
RuleBrackets
Public Field
Static Member
RuleCloseBracket
Public Field
Static Member
RuleOpenBracket
Public Field
Static Member
Separator
Public Field
Static Member
SequenceCode
Public Field
Static Member
SequenceSymbol