Table of Contents

Class DataModelPropertyAttribute

Namespace
Artemis.Core.Modules
Assembly
Artemis.Core.dll

Represents an attribute that describes a data model property

[AttributeUsage(AttributeTargets.Property)]
public class DataModelPropertyAttribute : Attribute
Inheritance
object
DataModelPropertyAttribute
Inherited Members

Properties

Affix

Gets or sets an optional affix to show behind displaying elements in the UI.

public string? Affix { get; set; }

Property Value

string

Description

Gets or sets the user-friendly description for this property, shown in the UI.

public string? Description { get; set; }

Property Value

string

ListItemName

Gets or sets the name of list items, only applicable to enumerable data model properties

public string? ListItemName { get; set; }

Property Value

string

MaxValue

Gets or sets an optional maximum value, this value is not enforced but used for percentage calculations.

public object? MaxValue { get; set; }

Property Value

object

MinValue

Gets or sets an optional minimum value, this value is not enforced but used for percentage calculations.

public object? MinValue { get; set; }

Property Value

object

Name

Gets or sets the user-friendly name for this property, shown in the UI.

public string? Name { get; set; }

Property Value

string

Prefix

Gets or sets the an optional prefix to show before displaying elements in the UI.

public string? Prefix { get; set; }

Property Value

string

ResetsDepth

Gets or sets whether this property resets the max depth of the data model, defaults to true

public bool ResetsDepth { get; set; }

Property Value

bool