Class GristCellTypeHelpers
Methods to convert cell type codes into GristCellType enums.
Inherited Members
Namespace: Grist4NET
Assembly: Grist4NET.dll
Syntax
public static class GristCellTypeHelpers
Methods
GetWrapperEnum(string)
Maps type codes to GristCellType members
Declaration
public static GristCellType GetWrapperEnum(string code)
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | Single-letter type code |
Returns
| Type | Description |
|---|---|
| GristCellType |
See Also
TryGetWrapperEnum(string?, out GristCellType?)
Behaves the same as GetWrapperEnum(string) when length 1 string is provided
Declaration
public static bool TryGetWrapperEnum(string? code, out GristCellType? type)
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | Type code |
| GristCellType? | type | Set when a GristCellType can be mapped (Including Unknown) |
Returns
| Type | Description |
|---|---|
| bool | True if length 1 string is provided, false otherwise |