Show / Hide Table of Contents

Class Ruleset

A specific rule set for the number formatter.

Inheritance
Object
Ruleset
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sepia.Globalization.Numbers.Rules
Assembly: Sepia.Globalization.dll
Syntax
public class Ruleset

Properties

| Improve this Doc View Source

Access

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Rules

Formatting rules.

Declaration
public ICollection<IRule> Rules { get; set; }
Property Value
Type Description
ICollection<IRule>

A sequence of formatting rules.

| Improve this Doc View Source

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 Source

ApplyRules(RbnfContext)

Declaration
public void ApplyRules(RbnfContext context)
Parameters
Type Name Description
RbnfContext context
| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX