Skip to main content

IBoundedModal interface

Namespace: Arlecchino.Modals.Setting · Assembly: Arlecchino

A value that moves in steps between two ends. Shared by the number field and the slider, so the stepping keys work the same in both.

public interface IBoundedModal

Implemented by NumberModal, SliderModal

Properties

MemberSummary
LargeStepHow far the page keys move the value.
MaximumHighest value allowed.
MinimumLowest value allowed.
StepHow far the arrow keys move the value.

Methods

MemberSummary
Add(decimal)Moves the value and clamps it to the bounds.

Properties in detail

LargeStep

public decimal LargeStep { get; }

How far the page keys move the value.

Type decimal

Maximum

public decimal Maximum { get; }

Highest value allowed.

Type decimal

Minimum

public decimal Minimum { get; }

Lowest value allowed.

Type decimal

Step

public decimal Step { get; }

How far the arrow keys move the value.

Type decimal

Methods in detail

Add(decimal)

public void Add(decimal delta);

Moves the value and clamps it to the bounds.

Parameters

NameTypeDescription
deltadecimalHow far to move; negative goes down.