Class Ruleset
A specific rule set for the number formatter.
Inherited Members
Namespace: Sepia.Globalization.Numbers.Rules
Assembly: Sepia.Globalization.dll
Syntax
public class Ruleset
Properties
| Improve this Doc View SourceAccess
The accessibility of the rule set.
Declaration
public string Access { get; set; }
Property Value
Type | Description |
---|---|
String | One of "public", "private" or "". When empty, "public" is assumed. |
IsPublic
Determines if the rule set has public access.
Declaration
public bool IsPublic { get; }
Property Value
Type | Description |
---|---|
Boolean | true if Access is "public" or empty; otherwise, false. |
Rules
Formatting rules.
Declaration
public ICollection<IRule> Rules { get; set; }
Property Value
Type | Description |
---|---|
ICollection<IRule> | A sequence of formatting rules. |
Type
The type name of the rule set.
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
String | Any non-empty string. |
Methods
| Improve this Doc View SourceApplyRules(RbnfContext)
Declaration
public void ApplyRules(RbnfContext context)
Parameters
Type | Name | Description |
---|---|---|
RbnfContext | context |
Parse(XPathNavigator)
Create a rule set from the specified XPathNavigator.
Declaration
public static Ruleset Parse(XPathNavigator xml)
Parameters
Type | Name | Description |
---|---|---|
XPathNavigator | xml | The XML representation of a rule set. |
Returns
Type | Description |
---|---|
Ruleset | A new rule set. |
Remarks
The xml
must be on an "ruleset" element.