Enumeration or Set Element (Named Data Type)

From wiki.fine.cz
Jump to navigation Jump to search

Defines one enumeration or set element.

Template XML definition

Common Properties

Property Template XML Description Presence Default
Settings [E] Settings required
    Element is Heading     [A] BOOL IsHeading If true, the element acts as heading while selecting from list of elements, this element cannot be selected. optional false
    Shape type     [A] ENUM ShapeType Shape type {[V] None,[V] Sample,[V] Picture} optional None
    Shape definition     [E] ShapeDefinition Definition of shape drawing. optional

Shape Types

Shape type Description Visualization
None No shape defined and visualized
Sample Shape is defined relative without units defined. Property VertAlign specifies position of the insertion point - Top, Center, Bottom. Shape is drawn into area with aspect ration H:V = 2:1, while height is usually determined by font height. Insertion point can be in the left or right boundary, vertically specified by VertAlign property. Vertical Align.png
Picture Shape is defined in milimeters. Shape is drawn in absolute size, insertion point is 0, 0

Example of Template XML

<Item ID="F_SAMP_U" GUID="{F14426ED-878B-4B30-ACF0-EC7062DDEA80}" ItemType="EnumItem">

  <Name .... />

  <Comment .... />

  <Settings Ident="A" IsHeading="true" />

    <ShapeDefinition ... />

</Settings>

</Item>

Data XML Definition

Enumeration or Set element is never written into Data XML, it is only referenced by EnumValue of Enumeration Named Data Type or SetValue of Set Named Data Type.