Class NthLastChildPseudoClass
Related to:SoyWar.UIToolkit.PseudoClasses
/
Inherits from:objectPseudoClassChildPseudoClassNthChildPseudoClass
/
Implemented in:SoyWar.UIToolkit.dll
Implements interfaces:ICloneable
Description
The:nth-last-child()pseudo-class matches elements based on their position among a group of siblings, counting from the end.
Syntax
public class NthLastChildPseudoClass : NthChildPseudoClass, ICloneableExamples
:nth-last-child()pseudo-class is specified with a single argument, which represents the pattern for matching elements, counting from the end.
:nth-last-child( <An+B> | even | odd )Keyword values
odd
event
Functional notation
<An+B>Represents elements whose numeric position in a series of siblings matches the patternAn+B, for every positive integer or zero value ofn, where:
Ais an integer step size,Bis an integer offset,nis all nonnegative integers, starting from 0.
An+B-th element of a list. The index of the first element, counting from the end, is 1. TheAandBmust both have integer values.Implements
Inherited Members
Properties
| Name | Description |
|---|---|
| Host | Specifies whether the pseudo class should be called for hosts. |
| Value | Value associated with the pseudo-class |
Methods
| Name | Description |
|---|---|
| Check<TElement>(VisualElement, TElement, int, Func<TElement, int, VisualElement>) | Checks if theVisualElementis valid according to the position allowed by the An+B value. |
| GetChild(VisualElement, int) | Get the child at specified position of theVisualElement. |
| GetChild(Hierarchy, int) | Get the child at specified position of theVisualElement.Hierarchy. |
| AddManipulatorCallback(PseudoClassManipulator) | Add events callback to thePseudoClassManipulator |
| Add<T>(string) | Add a new usable pseudo class |
| Check(PseudoClassManipulator) | Checks if thePseudoClassManipulatoris valid according to the rules of the current pseudo-class. |
| Check(ICollection<VisualElement>, VisualElement, TypeSearch) | Checks if theVisualElementis valid according to the rules of the current pseudo-class. |
| Clone() | Creates a new object that is a copy of the current instance. |
| CreateManipulator(ICollection<VisualElement>, VisualElement, TypeSearch, bool, Action<bool>) | Creates aPseudoClassManipulatorto handle various events. |
| GetValueString() | Retrieves the value to be displayed as a string inSoyWar.UIToolkit.PseudoClasses.PseudoClass.ToString(). |
| PointerInside(VisualElement, int) | Checks if a pointer is inside the VisualElement. |
| PointerInside(VisualElement, Vector2) | Checks if the specified position is inside theVisualElement. |
| Validate() | Checks if the pseudo-class is valid. |
| Validate(out int, out int) | Checks if the pseudo class value is <even | odd | An+B> |
