Class GristColumnTypeHelpers
Helper and extension methods for working with GristColumnType and GristColumnTypeCategory.
Inherited Members
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 |