IEnumType Interface

Common Enum type interface

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public interface IEnumType : IAliasType, 
    IDataType, IBitSize

VB

Public Interface IEnumType
    Inherits IAliasType, IDataType, IBitSize

The IEnumType type exposes the following members.

Properties

 

Name

Description

Attributes

Gets the attributes of the IDataType (Inherited from IDataType.)

BaseType

Gets the Base Type (Inherited from IAliasType.)

BaseTypeName

Gets the BaseType name (Inherited from IAliasType.)

BitSize

Gets the size of the IDataType in bits. (Inherited from IBitSize.)

ByteSize

Gets the (aligned) size of of the Type/Instance in Bytes (Inherited from IBitSize.)

Category

Gets the Data Type category (Inherited from IDataType.)

Comment

Gets the comment behind the variable declaration. (Inherited from IDataType.)

EnumValues

Enumeration specification (if enum)

FullName

Gets the full name of the IDataType (Namespace + Name) (Inherited from IDataType.)

Id

Gets the ID of the DataType (Inherited from IDataType.)

IsBitType

Gets a value indicating whether this instance is not basing on a full DataType but instead of some sort of bit mapping (Inherited from IBitSize.)

IsByteAligned

Indicates that the Size of the Object is Byte aligned (BitSize % 8 == 0) (Inherited from IBitSize.)

IsContainer

Gets a value indicating whether this IDataType is a container type (Inherited from IDataType.)

IsPointer

Gets a value indicating whether this IDataType is a pointer type (Inherited from IDataType.)

IsPrimitive

Gets a value indicating whether this IDataType is primitive (Inherited from IDataType.)

IsReference

Gets a value indicating whether this IDataType is a reference type (Inherited from IDataType.)

Name

Gets the name of the Data Type (without namespace) (Inherited from IDataType.)

Namespace

Gets the namespace string within the IDataType exists. (Inherited from IDataType.)

Size

Gets the size of the object in bytes or Bits dependant on IsBitType (Inherited from IBitSize.)

Methods

 

Name

Description

Contains

Determines whether the enum values contains the specified name

GetNames

Gets the filed names of the IEnumType.T.

GetValues

Gets the values of the IEnumType.T.

Parse

Parses a value name of the IEnumType.T. and returns the value (as base type)

ToString

Returns a String that represents the specified value.

TryParse

Parses the value from value name.

Reference

TwinCAT.TypeSystem Namespace