Class DefaultLayoutAttribute
Any layout generator that derives from Default
This specifies the layout is a default one to be used for certain layout/param combinations, and this attribute provides a priority for it to be used in
Without this attribute the layout generator can only be used explicitly, it will not be automatically chosen by the systemInherited Members
Namespace: LemonEdge .Client.UI.API.Layouts
Assembly: LemonEdge.Client.UI.API.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class DefaultLayoutAttribute : Attribute
Constructors
DefaultLayoutAttribute()
Marks this Default
This will have a default priority of 0, meaning any other generator for the same layout with a higher priority will be chosen by the system instead of this one
Declaration
public DefaultLayoutAttribute()
DefaultLayoutAttribute(int)
Marks this Defaultpriority
) as a default layout
Declaration
public DefaultLayoutAttribute(int priority)
Parameters
Type | Name | Description |
---|---|---|
int | priority | The priority used to determine if this generator should be used versus another that works on the same layout/param. The highest priority will always be used. System default ones have a priority of 0. |
Properties
Priority
The priority used to determine if this generator should be used versus another that works on the same layout/param. The highest priority will always be used. System default ones have a priority of 0.
Declaration
public int Priority { get; }
Property Value
Type | Description |
---|---|
int |