Interface ICamApiAttributeStringEnumValues
The list of available values if the attribute has enum restriction.
Assembly: CAMAPI.CustomAttributes.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("3803148A-770A-4F0A-AD96-C209914AA523")]
public interface ICamApiAttributeStringEnumValues
Properties
Extendable
Can user add its own values to the enum list or not.
Declaration
bool Extendable { get; set; }
Property Value
Value[int]
Declaration
string Value[int Index] { get; set; }
Parameters
Type |
Name |
Description |
int |
Index |
|
Property Value
ValueCaption[int]
Declaration
string ValueCaption[int Index] { get; set; }
Parameters
Type |
Name |
Description |
int |
Index |
|
Property Value
ValuesCount
Count of enum values in the list.
Declaration
Property Value
Methods
AddValue(string, string)
Add possible value to the list. Returns resulting index of the value in this list.
Declaration
int AddValue(string Value, string Caption)
Parameters
Type |
Name |
Description |
string |
Value |
|
string |
Caption |
|
Returns
RemoveValue(int)
Declaration
bool RemoveValue(int ValueIndex)
Parameters
Type |
Name |
Description |
int |
ValueIndex |
|
Returns