Skip to the content.

PromptPlus API:IControlSliderNumber

Build Publish License NuGet Downloads

Back to List Api

IControlSliderNumber

Namespace: PPlus.Controls

Represents the interface with all Methods of the SliderNumber control

public interface IControlSliderNumber : IPromptControls<Double>

Implements IPromptControls<Double>

Methods

BarType(SliderBarType)

Define type Bar to Slider.
Valid only When Layout equal LeftRight, otherwise its is ignored

IControlSliderNumber BarType(SliderBarType value)

Parameters

value SliderBarType
The SliderBarType. Default value ‘SliderBarType.Fill’

Returns

IControlSliderNumber

ChangeColor(Func<Double, Color>)

Dynamically change color Widgets
Valid only When Layout equal LeftRight mode, otherwise its is ignored

IControlSliderNumber ChangeColor(Func<Double, Color> value)

Parameters

value Func<Double, Color>
function to change color

Returns

IControlSliderNumber

ChangeDescription(Func<Double, String>)

Dynamically change the description using a user role

IControlSliderNumber ChangeDescription(Func<Double, String> value)

Parameters

value Func<Double, String>
function to apply change

Returns

IControlSliderNumber

ChangeGradient(params Color[])

Dynamically Change Gradient color Widgets
Valid only When Layout equal LeftRight mode, otherwise its is ignored

IControlSliderNumber ChangeGradient(params Color[] colors)

Parameters

colors Color[]
list of colors Gradient

Returns

IControlSliderNumber

Config(Action<IPromptConfig>)

Custom config the control.

IControlSliderNumber Config(Action<IPromptConfig> context)

Parameters

context Action<IPromptConfig>
action to apply changes. IPromptConfig

Returns

IControlSliderNumber

Culture(CultureInfo)

CultureInfo to validate input value format.

IControlSliderNumber Culture(CultureInfo value)

Parameters

value CultureInfo
CultureInfo to use on validate

Returns

IControlSliderNumber

Culture(String)

CultureInfo to validate input when the type is not generic.
Default value is global Promptplus Cultureinfo

IControlSliderNumber Culture(string value)

Parameters

value String
Name of CultureInfo to use on validate

Returns

IControlSliderNumber

Default(Double)

Initial value

IControlSliderNumber Default(double value)

Parameters

value Double
value

Returns

IControlSliderNumber

FracionalDig(Int32)

Define the Fracional Digits of value. Default is 0.

IControlSliderNumber FracionalDig(int value)

Parameters

value Int32
Fracional Digits

Returns

IControlSliderNumber

HideRange(Boolean)

Hide min./max elements in slider. Default is Show

IControlSliderNumber HideRange(bool value)

Parameters

value Boolean
True for hide,false for show

Returns

IControlSliderNumber

LargeStep(Double)

Define the large step to change. Default value is 1/10 of range

IControlSliderNumber LargeStep(double value)

Parameters

value Double
short step to change

Returns

IControlSliderNumber

Layout(LayoutSliderNumber)

Define the layout to change value. Default value is ‘LayoutSliderNumber.LeftRight’.
When Layout equal UpDown , slider control not show Widgets

IControlSliderNumber Layout(LayoutSliderNumber value)

Parameters

value LayoutSliderNumber
The LayoutSliderNumber

Returns

IControlSliderNumber

OverwriteDefaultFrom(String, Nullable<TimeSpan>)

Overwrite default start value with last result saved on history.
OverwriteDefaultFrom cannot be used with IsSecret

IControlSliderNumber OverwriteDefaultFrom(string value, Nullable<TimeSpan> timeout)

Parameters

value String
name of file to save history

timeout Nullable<TimeSpan>
The timeout for valid items saved. Default value is 365 days

Returns

IControlInput

Range(Double, Double)

Defines a minimum and maximum range values

IControlSliderNumber Range(double minvalue, double maxvalue)

Parameters

minvalue Double
Minimum number

maxvalue Double
Maximum number

Returns

IControlSliderNumber

Step(Double)

Define the short step to change. Default value is 1/100 of range

IControlSliderNumber Step(double value)

Parameters

value Double
short step to change

Returns

IControlSliderNumber

Styles(SliderNumberStyles, Style)

Overwrite Styles

IControlSliderNumber Styles(SliderNumberStyles styletype, Style value)

Parameters

styletype SliderNumberStyles
SliderNumberStyles of content

value Style
The Style

Returns

IControlSliderNumber

Width(Int32)

Define Width to Widgets. Default value is 40.The value must be greater than or equal to 10.

IControlSliderNumber Width(int value)

Parameters

value Int32
Width

Returns

IControlSliderNumber


Back to List Api