Class SegmentationRules
Inheritance
System.Object
SegmentationRules
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class SegmentationRules : ICloneable
Constructors
Declaration
public SegmentationRules()
Declaration
public SegmentationRules(SegmentationRules other)
Parameters
Declaration
public SegmentationRules(CultureInfo culture, string description)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
System.String |
description |
|
Declaration
public SegmentationRules(string cultureName, string description)
Parameters
Type |
Name |
Description |
System.String |
cultureName |
|
System.String |
description |
|
Properties
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public CultureInfo Culture { get; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public string CultureName { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public LocalizedString Description { get; set; }
Property Value
Declaration
public SegmentationRule this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Declaration
public bool ListReferencesResolved { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public List<SegmentationRule> Rules { get; set; }
Property Value
Methods
Declaration
public void Add(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Declaration
public void AddRule(SegmentationRule r)
Parameters
Declaration
Returns
Type |
Description |
System.Object |
|
Declaration
public IEnumerator<SegmentationRule> GetEnumerator()
Returns
Declaration
public static SegmentationRules Load(Stream reader, CultureInfo cultureOverride, IResourceDataAccessor accessor)
Parameters
Type |
Name |
Description |
System.IO.Stream |
reader |
|
System.Globalization.CultureInfo |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
Returns
Declaration
public static SegmentationRules Load(Stream reader, CultureInfo cultureOverride, IResourceDataAccessor accessor, bool keepListReferences)
Parameters
Type |
Name |
Description |
System.IO.Stream |
reader |
|
System.Globalization.CultureInfo |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
System.Boolean |
keepListReferences |
|
Returns
Declaration
public static SegmentationRules Load(Stream reader, string cultureOverride, IResourceDataAccessor accessor)
Parameters
Type |
Name |
Description |
System.IO.Stream |
reader |
|
System.String |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
Returns
Declaration
public static SegmentationRules Load(Stream reader, string cultureOverride, IResourceDataAccessor accessor, bool keepListReferences)
Parameters
Type |
Name |
Description |
System.IO.Stream |
reader |
|
System.String |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
System.Boolean |
keepListReferences |
|
Returns
Declaration
public static SegmentationRules Load(string fileName, CultureInfo cultureOverride, IResourceDataAccessor accessor)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
System.Globalization.CultureInfo |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
Returns
Declaration
public static SegmentationRules Load(string fileName, CultureInfo cultureOverride, IResourceDataAccessor accessor, bool keepListReferences)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
System.Globalization.CultureInfo |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
System.Boolean |
keepListReferences |
|
Returns
Declaration
public static SegmentationRules Load(string fileName, string cultureOverride, IResourceDataAccessor accessor)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
System.String |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
Returns
Declaration
public static SegmentationRules Load(string fileName, string cultureOverride, IResourceDataAccessor accessor, bool keepListReferences)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
System.String |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
System.Boolean |
keepListReferences |
|
Returns
Declaration
public static SegmentationRules LoadUsingDataContractSerializer(Stream reader, CultureInfo cultureOverride, IResourceDataAccessor accessor, bool keepListReferences)
Parameters
Type |
Name |
Description |
System.IO.Stream |
reader |
|
System.Globalization.CultureInfo |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
System.Boolean |
keepListReferences |
|
Returns
Declaration
public static SegmentationRules LoadUsingDataContractSerializer(Stream reader, string cultureOverride, IResourceDataAccessor accessor, bool keepListReferences)
Parameters
Type |
Name |
Description |
System.IO.Stream |
reader |
|
System.String |
cultureOverride |
|
IResourceDataAccessor |
accessor |
|
System.Boolean |
keepListReferences |
|
Returns
Declaration
public static void Save(SegmentationRules rules, Stream writer)
Parameters
Declaration
public void Save(Stream writer)
Parameters
Type |
Name |
Description |
System.IO.Stream |
writer |
|
Declaration
public void Save(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Declaration
public void SaveUsingDataContractSerializer(Stream writer)
Parameters
Type |
Name |
Description |
System.IO.Stream |
writer |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.ICloneable