Micro Focus Content Manager SDK 10.1
TRIM.SDK.Enum Class Reference

A helper class that allows you to iterate through enum item values and access captions for them. More...

Inheritance diagram for TRIM.SDK.Enum:
TRIM.SDK.TrimSDKObject

Public Member Functions

 Enum (AllEnumerations enumType)
 Constructs an Enum base on the specified enum type. More...
 
 Enum (AllEnumerations enumType, Database forDatabase)
 
EnumItemList GetItemArray ()
 Returns an array of EnumItem objects that belong to this enum. More...
 
EnumItemList GetItemArray (IntList excludingTheseValues, bool excludeUneditedCustomValues)
 Returns an array of EnumItem objects that is a subset of those that belong to this enum. More...
 
EnumItem FindItemByCaption (string itemCaption)
 Constructs an EnumItem by searching for an item within this enumeration that has the caption supplied. More...
 
EnumItem FindItemByName (string itemName)
 Constructs an EnumItem by searching for an item within this enumeration that has item name supplied. More...
 
- Public Member Functions inherited from TRIM.SDK.TrimSDKObject
 TrimSDKObject ()
 

Properties

AllEnumerations EnumType [get]
 Gets an AllEnumerations enum value indicating which TRIM Enumeration this EnumItemHelper applies to. More...
 
string Name [get]
 Returns a string containing the internal (uncaptioned) name for this e enumeration at the specified index of the collection. More...
 
bool IsValid [get]
 Gets an boolean value indicating whether this EnumItem is actually valid. More...
 
string Caption [get, set]
 Gets or sets the descriptive caption for this enumeration. Note that to set a caption, this object must have been constructed with a valid Database parameter. To make caption changes permanent, call the SaveCaptionChanges method of the database More...
 
string CaptionPlural [get, set]
 Gets or sets the plural version of caption for this enumeration. Note that to set a caption, this object must have been constructed with a valid Database parameter. To make caption changes permanent, call the SaveCaptionChanges method of the database More...
 
Icons Icon [get]
 Gets the identifier of the TRIM icon associated with this enumeration. More...
 
- Properties inherited from TRIM.SDK.TrimSDKObject
string ErrorMessage [get]
 All TRIM SDK objects have an ErrorMessage property which can be used to examine any error that may have occurred in the most recent method call. More...
 
TrimException Error [get]
 All TRIM SDK objects have an Error property which can be used to examine any error that may have occurred in the most recent method call. More...
 

Detailed Description

A helper class that allows you to iterate through enum item values and access captions for them.

Constructor & Destructor Documentation

◆ Enum() [1/2]

TRIM.SDK.Enum.Enum ( AllEnumerations  enumType)

Constructs an Enum base on the specified enum type.

◆ Enum() [2/2]

TRIM.SDK.Enum.Enum ( AllEnumerations  enumType,
Database  forDatabase 
)

Member Function Documentation

◆ FindItemByCaption()

EnumItem TRIM.SDK.Enum.FindItemByCaption ( string  itemCaption)

Constructs an EnumItem by searching for an item within this enumeration that has the caption supplied.

◆ FindItemByName()

EnumItem TRIM.SDK.Enum.FindItemByName ( string  itemName)

Constructs an EnumItem by searching for an item within this enumeration that has item name supplied.

◆ GetItemArray() [1/2]

EnumItemList TRIM.SDK.Enum.GetItemArray ( )

Returns an array of EnumItem objects that belong to this enum.

◆ GetItemArray() [2/2]

EnumItemList TRIM.SDK.Enum.GetItemArray ( IntList  excludingTheseValues,
bool  excludeUneditedCustomValues 
)

Returns an array of EnumItem objects that is a subset of those that belong to this enum.

Property Documentation

◆ Caption

string TRIM.SDK.Enum.Caption
getset

Gets or sets the descriptive caption for this enumeration. Note that to set a caption, this object must have been constructed with a valid Database parameter. To make caption changes permanent, call the SaveCaptionChanges method of the database

◆ CaptionPlural

string TRIM.SDK.Enum.CaptionPlural
getset

Gets or sets the plural version of caption for this enumeration. Note that to set a caption, this object must have been constructed with a valid Database parameter. To make caption changes permanent, call the SaveCaptionChanges method of the database

◆ EnumType

AllEnumerations TRIM.SDK.Enum.EnumType
get

Gets an AllEnumerations enum value indicating which TRIM Enumeration this EnumItemHelper applies to.

◆ Icon

Icons TRIM.SDK.Enum.Icon
get

Gets the identifier of the TRIM icon associated with this enumeration.

◆ IsValid

bool TRIM.SDK.Enum.IsValid
get

Gets an boolean value indicating whether this EnumItem is actually valid.

◆ Name

string TRIM.SDK.Enum.Name
get

Returns a string containing the internal (uncaptioned) name for this e enumeration at the specified index of the collection.