Docs · API reference · Verso.Abstractions

PropertyField Class#

Defines a single editable property within a PropertySection.

public sealed record PropertyField : System.IEquatable<Verso.Abstractions.PropertyField>

Inheritance System.Object → PropertyField

Implements System.IEquatable<PropertyField>

Constructors#

PropertyField(string, string, PropertyFieldType, object, string, IReadOnlyList<PropertyFieldOption>, bool) Constructor#

Defines a single editable property within a PropertySection.

public PropertyField(string Name, string DisplayName, Verso.Abstractions.PropertyFieldType FieldType, object? CurrentValue, string? Description=null, System.Collections.Generic.IReadOnlyList<Verso.Abstractions.PropertyFieldOption>? Options=null, bool IsReadOnly=false);

Parameters#

Name System.String

The programmatic name used to identify this field in change callbacks.

DisplayName System.String

The human-readable label shown in the properties panel.

FieldType PropertyFieldType

The input control type for this field.

CurrentValue System.Object

The current value of the property, or null if unset.

Description System.String

Optional tooltip or help text for the field.

Options System.Collections.Generic.IReadOnlyList<PropertyFieldOption>

Available options for Select and MultiSelect fields.

IsReadOnly System.Boolean

When true, the field is displayed but cannot be edited.

Properties#

CurrentValue Property#

The current value of the property, or null if unset.

public object? CurrentValue { get; init; }

Property Value#

System.Object

Description Property#

Optional tooltip or help text for the field.

public string? Description { get; init; }

Property Value#

System.String

DisplayName Property#

The human-readable label shown in the properties panel.

public string DisplayName { get; init; }

Property Value#

System.String

FieldType Property#

The input control type for this field.

public Verso.Abstractions.PropertyFieldType FieldType { get; init; }

Property Value#

PropertyFieldType

IsReadOnly Property#

When true, the field is displayed but cannot be edited.

public bool IsReadOnly { get; init; }

Property Value#

System.Boolean

Name Property#

The programmatic name used to identify this field in change callbacks.

public string Name { get; init; }

Property Value#

System.String

Options Property#

Available options for Select and MultiSelect fields.

public System.Collections.Generic.IReadOnlyList<Verso.Abstractions.PropertyFieldOption>? Options { get; init; }

Property Value#

System.Collections.Generic.IReadOnlyList<PropertyFieldOption>