Therefore API > API Reference > Classes > TheCategory > Methods
CreateField
Creates a new category field and adds it to the current category.
Name
Description
ITheCategoryField CreateField(int, string, int, int, ITheServer)
Creates a new category field.
ITheCategoryField CreateField(ITheCaseDefinition, int)
Creates a new case header field.
ITheCategoryField CreateField(ITheCaseDefinition, int, string)
Creates a new case header field with a specific FieldID.
Please check the help pages of the various overloads for the exact syntax in Visual Basic and C#.