Grist4NET
Search Results for

    Show / Hide Table of Contents

    Class GristColumnTypeHelpers

    Helper and extension methods for working with GristColumnType and GristColumnTypeCategory.

    Inheritance
    object
    GristColumnTypeHelpers
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Grist4NET
    Assembly: Grist4NET.dll
    Syntax
    public static class GristColumnTypeHelpers

    Methods

    GetCategory(GristColumnType)

    Get a GristColumnType's corresponding GristColumnTypeCategory. See the docs of each category enum for the mappings.

    Declaration
    public static GristColumnTypeCategory GetCategory(this GristColumnType source)
    Parameters
    Type Name Description
    GristColumnType source
    Returns
    Type Description
    GristColumnTypeCategory

    GetWrapperEnum(string, out string?)

    Parses the enum-and-then-some string that the Grist API returns to describe a column type

    Declaration
    public static GristColumnType GetWrapperEnum(string type, out string? parameter)
    Parameters
    Type Name Description
    string type

    The "type" field from a Grist column API query

    string parameter

    Set when a DateTime, Ref, or RefList column is given

    Returns
    Type Description
    GristColumnType
    In this article
    Back to top Generated by DocFX