Search Results for

    Show / Hide Table of Contents

    Class Strings

    String collection

    Inheritance
    object
    List<string>
    Strings
    Implements
    IList<string>
    ICollection<string>
    IList
    ICollection
    IReadOnlyList<string>
    IReadOnlyCollection<string>
    IEnumerable<string>
    IEnumerable
    ICloneable
    Inherited Members
    List<string>.Add(string)
    List<string>.AddRange(IEnumerable<string>)
    List<string>.AsReadOnly()
    List<string>.BinarySearch(int, int, string, IComparer<string>)
    List<string>.BinarySearch(string)
    List<string>.BinarySearch(string, IComparer<string>)
    List<string>.Clear()
    List<string>.Contains(string)
    List<string>.ConvertAll<TOutput>(Converter<string, TOutput>)
    List<string>.CopyTo(string[])
    List<string>.CopyTo(int, string[], int, int)
    List<string>.CopyTo(string[], int)
    List<string>.EnsureCapacity(int)
    List<string>.Exists(Predicate<string>)
    List<string>.Find(Predicate<string>)
    List<string>.FindAll(Predicate<string>)
    List<string>.FindIndex(Predicate<string>)
    List<string>.FindIndex(int, Predicate<string>)
    List<string>.FindIndex(int, int, Predicate<string>)
    List<string>.FindLast(Predicate<string>)
    List<string>.FindLastIndex(Predicate<string>)
    List<string>.FindLastIndex(int, Predicate<string>)
    List<string>.FindLastIndex(int, int, Predicate<string>)
    List<string>.ForEach(Action<string>)
    List<string>.GetEnumerator()
    List<string>.GetRange(int, int)
    List<string>.Slice(int, int)
    List<string>.IndexOf(string)
    List<string>.IndexOf(string, int)
    List<string>.IndexOf(string, int, int)
    List<string>.Insert(int, string)
    List<string>.InsertRange(int, IEnumerable<string>)
    List<string>.LastIndexOf(string)
    List<string>.LastIndexOf(string, int)
    List<string>.LastIndexOf(string, int, int)
    List<string>.Remove(string)
    List<string>.RemoveAll(Predicate<string>)
    List<string>.RemoveAt(int)
    List<string>.RemoveRange(int, int)
    List<string>.Reverse()
    List<string>.Reverse(int, int)
    List<string>.Sort()
    List<string>.Sort(IComparer<string>)
    List<string>.Sort(int, int, IComparer<string>)
    List<string>.Sort(Comparison<string>)
    List<string>.ToArray()
    List<string>.TrimExcess()
    List<string>.TrueForAll(Predicate<string>)
    List<string>.Capacity
    List<string>.Count
    List<string>.this[int]
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public class Strings : List<string>, IList<string>, ICollection<string>, IList, ICollection, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable, ICloneable

    Constructors

    View Source

    Strings()

    Declaration
    public Strings()

    Properties

    View Source

    Text

    Get a single string separating strings by a LINE FEED char, (char)10

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    Clone()

    Clone the object

    Declaration
    public object Clone()
    Returns
    Type Description
    object

    A object clone

    View Source

    FromSemiColon(string)

    Converts a string with semicolons to a Strings collection

    Declaration
    public static Strings FromSemiColon(string semicolonstring)
    Parameters
    Type Name Description
    string semicolonstring
    Returns
    Type Description
    Strings
    View Source

    FromSeparator(char, string)

    Converts a string with any separator to a Strings collection

    Declaration
    public static Strings FromSeparator(char separator, string nstring)
    Parameters
    Type Name Description
    char separator
    string nstring
    Returns
    Type Description
    Strings
    View Source

    GetStringByIndex(string, int)

    Obtain a single string from a collection of strings stored in a single string

    Declaration
    public static string GetStringByIndex(string astring, int index)
    Parameters
    Type Name Description
    string astring

    A list of strings represented by a single string separated by LF (char)10

    int index

    Index to check

    Returns
    Type Description
    string

    Returns a single string, obtained from index or an empty string if not found

    View Source

    LoadFromFile(string)

    Declaration
    public void LoadFromFile(string filename)
    Parameters
    Type Name Description
    string filename
    View Source

    LoadFromStream(Stream)

    Declaration
    public void LoadFromStream(Stream nstream)
    Parameters
    Type Name Description
    Stream nstream
    View Source

    RemoveBlanks()

    Remove the empty strings

    Declaration
    public void RemoveBlanks()
    View Source

    SetStringByIndex(string, string, int)

    Generates a string collection (inside a single string) from a collection of strings an index and a string. So really, it inserts (or update) a line inside a group of lines.

    Declaration
    public static string SetStringByIndex(string astring, string avalue, int index)
    Parameters
    Type Name Description
    string astring

    A list of strings represented by a single string separated by LF (char)10

    string avalue

    String value to insert into the list

    int index
    Returns
    Type Description
    string

    Collection of strings separated by LF with the line inserted or updated

    View Source

    ToCharSeparated(char)

    Converts the string collection into a semicolon separated string

    Declaration
    public string ToCharSeparated(char separator)
    Parameters
    Type Name Description
    char separator
    Returns
    Type Description
    string
    View Source

    ToSemiColon()

    Converts the string collection into a semicolon separated string

    Declaration
    public string ToSemiColon()
    Returns
    Type Description
    string

    Implements

    IList<T>
    ICollection<T>
    IList
    ICollection
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    ICloneable

    Extension Methods

    ListExtensions.Swap<T>(List<T>, int, int)
    • View Source
    In this article
    Back to top Generated by DocFX