Click or drag to resize
AB4D logo

ReaderSvgSwitchElementProcessingType Property

Specifies which children of the svg switch element will be imported and shown. Default value is ShowFirstCollapseOthers (imports all switch children but shows only the first one; others are Collapsed).

Namespace:  Ab2d
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public ReaderSvgSwitchElementProcessingTypes SwitchElementProcessingType { get; set; }

Property Value

Type: ReaderSvgSwitchElementProcessingTypes
Remarks

SwitchElementProcessingType specifies which children of the svg switch element will be processed and shown. The switch element in svg file defines children that are shown based on the conditions defined in switch element. Because it is not possible to process svg conditions in WPF, it is possible to choose how the children will be imported.

By default only the first switch child is imported - the SwitchElementProcessingType is set to ShowFirstDiscardOthers.

With setting the SwitchElementProcessingType it is possible to disable importing switch children (Disabled), show the first child and set other to Hidden (ShowFirstHideOthers) or Collapsed (ShowFirstCollapseOthers). It is also possible to show all the children (ShowAll).

See Also