Docs / UI

Glossary: MarkupNode

The members of MarkupNode, in alphabetical order.

Color legend plain property

An element of a markup as it is written (see MarkupDocument.Nodes): the element it made, where it is written, and the elements written in it. An <Include> is a node as well, holding the elements of the UI it includes. For a tool showing a markup’s elements, and finding the place one is written at.

A sealed class of the BorrowedTorch.UI.Markup package (namespace BorrowedTorch.UI.Markup). Its ToString() is the type name and the element’s name, or Include and the source. The markup page shows it in context.

Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.

Properties

Children 🠆

IReadOnlyList<MarkupNode> · Read-only. The elements written in it, in the order they are written: its items or its content, the elements given to its properties, an include’s elements.

Column 🠆

int · Read-only. The column of its start tag’s name in its file, from 1.

Element 🠆

BaseElement · Read-only. The element made, null for an include.

File 🠆

string · Read-only. The file it is written in, by its full path: the file loaded or an included one; null for a markup given as text.

Line 🠆

int · Read-only. The line of its start tag in its file, from 1.

Parent 🠆

MarkupNode · Read-only. The node it is written in, null for one under the root.

Position 🠆

string · Read-only. Where it is in the markup: the indexes of the XML elements from the root down to it, from 0, through the includes (1/0/2). Property elements, <Ui.Styles> and <Ui.Animations> are counted. The node at the same position in the markup loaded again after an edit elsewhere in it is the same element; NodeAt finds it.

Property 🠆

string · Read-only. The property a property element gives the element to (ToolTip for one in <Button.ToolTip>), null for an item, a content or an element under the root.

Source 🠆

string · Read-only. An include’s Source as written, null for an element.

TypeName 🠆

string · Read-only. The type name as written (Button), or Include.