Record TItemSubtypeHelper

Hierarchy
Fields
Properties

Unit

Declaration

type TItemSubtypeHelper = record helper for TItemSubtype

Description

Helper for the TItemSubtype enum type.

Overview

Methods

Public class function FromInt(Value: Cardinal): TItemSubtype; static; inline;
Public function ToInt: Cardinal; inline;
Public function ToString: string;

Description

Methods

Public class function FromInt(Value: Cardinal): TItemSubtype; static; inline;

Converts an ordinal value to a TItemSubtype enum value.

Parameters
Value
The ordinal value to convert
Returns

A TItemSubtype enum value from the given ordinal value

Public function ToInt: Cardinal; inline;

Converts the TItemSubtype enum value to its corresponding ordinal value.

Note
Protocol enums may hold out-of-bounds "unrecognized" values, which would cause range-checking errors with Ord.
ToInt is safe to use with range-checking enabled.

Returns

The ordinal representation of the TItemSubtype value

Public function ToString: string;

Converts the TItemSubtype enum value to its string representation.

Returns

The string representation of the TItemSubtype value


Generated by PasDoc 0.16.0-snapshot.