IMember Properties

The IMember type exposes the following members.

Properties

 

Name

Description

Attributes

Gets the Type Attributes. (Inherited from IAttributedInstance.)

BitOffset

Gets the bit offset.

BitSize

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

ByteOffset

Gets the byte offset.

ByteSize

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

Comment

Gets the comment of the IInstance (Inherited from IInstance.)

DataType

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

InstanceName

Gets the name of the instance (without periods (.) (Inherited from IInstance.)

InstancePath

Gets the relative / absolute access path to the instance (with periods (.)) (Inherited from IInstance.)

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.)

IsPointer

Indicates that the IInstance represents a Pointer type (Pointer TO) (Inherited from IInstance.)

IsReference

Indicates that the IInstance represents a Reference type (REFERENCE TO) (Inherited from IInstance.)

IsStatic

Gets a value indicating whether this IInstance is static. (Inherited from IInstance.)

Offset

Gets the offset of the IMember within the parent IStructType in bits or bytes dependent on IsBitType.

ParentType

Gets the Parent Struct/Union of this IField. (Inherited from IField.)

Size

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

TypeName

Gets the name of the DataType that is used for this IInstance. (Inherited from IInstance.)

Reference

IMember Interface

TwinCAT.TypeSystem Namespace