Table of Contents

Class WatchList

Namespace
L5Sharp.Components
Assembly
L5Sharp.dll

A logix WatchList component. Contains the properties that comprise the L5X QuickWatchList element.

public class WatchList : LogixComponent<WatchList>, ILogixSerializable
Inheritance
WatchList
Implements
Inherited Members

Constructors

WatchList()

Creates a new default LogixElement initialized with an XElement having the L5XType name of the element.

public WatchList()

WatchList(XElement)

Initializes a new LogixElement with the provided XElement

public WatchList(XElement element)

Parameters

element XElement

The L5X XElement to initialize the entity with.

Exceptions

ArgumentNullException

element is null.

Properties

this[int]

Accesses a WatchTag at the specified index of the WatchList.

public WatchTag this[int index] { get; set; }

Parameters

index int

The zer0-based index of the WatchTag.

Property Value

WatchTag

this[string]

Accesses a WatchTag of the WatchList with the specifier tag name.

public WatchTag this[string specifier] { get; set; }

Parameters

specifier string

The tag specifier of the WatchTag to access.

Property Value

WatchTag

Methods

Add(WatchTag)

Adds a WatchTag to the end of the WatchList.

public void Add(WatchTag tag)

Parameters

tag WatchTag

The tag to add.

Exceptions

ArgumentNullException

tag is null.

Remove(string)

Removes the first WatchTag found in the WatchList with the provided specifier name.

public void Remove(string specifier)

Parameters

specifier string

The tag specifier to remove.