Class SmartEnumeration
Represents a smart enumeration value.
Inherited Members
Namespace: TopSolid.Kernel.Automating
Assembly: cs.temp.dll.dll
Syntax
[AvailableSinceVersion(7, 8, 0, 0)]
public class SmartEnumeration : SmartObject
Remarks
This class is available since v7.8.
Constructors
SmartEnumeration(Guid, Int32)
Initializes a new instance of the SmartEnumeration class of type Basic.
Declaration
public SmartEnumeration(Guid inEnumGuid, int inValue)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inEnumGuid | Enumeration GUID. |
System.Int32 | inValue | Value. |
SmartEnumeration(ElementId)
Initializes a new instance of the SmartEnumeration class of type Element.
Declaration
public SmartEnumeration(ElementId inElementId)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of providing element. |
SmartEnumeration(ElementId, ItemLabel)
Initializes a new instance of the SmartEnumeration class of type Item.
Declaration
public SmartEnumeration(ElementId inElementId, ItemLabel inItemLabel)
Parameters
Type | Name | Description |
---|---|---|
ElementId | inElementId | Identifier of providing element. |
ItemLabel | inItemLabel | Label of providing element item. |
SmartEnumeration(SmartEnumerationType, Guid, Nullable<Int32>, ElementId, ItemLabel)
Initializes a new instance of the SmartEnumeration class.
Declaration
public SmartEnumeration(SmartEnumerationType inType, Guid inEnumGuid, int? inValue, ElementId inElementId, ItemLabel inItemLabel)
Parameters
Type | Name | Description |
---|---|---|
SmartEnumerationType | inType | Type of smart enumeration. |
System.Guid | inEnumGuid | Enumeration GUID. |
System.Nullable<System.Int32> | inValue | Value, or null if unknown. |
ElementId | inElementId | Identifier of providing element, or Empty for none. |
ItemLabel | inItemLabel | Label of providing element item, or Empty for none. |
Fields
ElementId
Providing element identifier, or empty if none.
Declaration
public ElementId ElementId
Field Value
Type | Description |
---|---|
ElementId |
EnumGuid
Enumeration GUID.
Declaration
public Guid EnumGuid
Field Value
Type | Description |
---|---|
System.Guid |
ItemLabel
Providing element item label, or empty if none.
Declaration
public ItemLabel ItemLabel
Field Value
Type | Description |
---|---|
ItemLabel |
Type
Type of smart enumeration.
Declaration
public SmartEnumerationType Type
Field Value
Type | Description |
---|---|
SmartEnumerationType |
Value
Value, or null if unknown.
Declaration
public int? Value
Field Value
Type | Description |
---|---|
System.Nullable<System.Int32> |