CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface IListString

    Simple equivalent of List of strings

    Namespace: CAMAPI.Generic.List
    Assembly: CAMAPI.Generic.List.dll
    Syntax
    [Guid("E6A24EDA-5479-42B6-B5DF-BA76CB97053E")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IListString

    Methods

    Add(string)

    Add new element

    Declaration
    void Add(string element)
    Parameters
    Type Name Description
    string element

    Clear()

    Clear all elements

    Declaration
    void Clear()

    Contains(string)

    Check if element exists

    Declaration
    bool Contains(string element)
    Parameters
    Type Name Description
    string element
    Returns
    Type Description
    bool

    Count()

    Get number of elements

    Declaration
    int Count()
    Returns
    Type Description
    int

    Get(int)

    Declaration
    string Get(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    string

    GetText(string)

    Make concatenated text from list with specified delimiter

    Declaration
    string GetText(string delimiter)
    Parameters
    Type Name Description
    string delimiter
    Returns
    Type Description
    string

    Read(string, string)

    Clear existing elements and add new elements from one string with delimiter

    Declaration
    void Read(string elements, string delimiter)
    Parameters
    Type Name Description
    string elements
    string delimiter

    Remove(string)

    Remove existing element. If not found, do nothing

    Declaration
    void Remove(string element)
    Parameters
    Type Name Description
    string element
    In this article