PromptPlus API:IControlSliderNumber
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
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
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
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
Config(Action<IPromptConfig>)
Custom config the control.
IControlSliderNumber Config(Action<IPromptConfig> context)
Parameters
context
Action<IPromptConfig>
action to apply changes. IPromptConfig
Returns
Culture(CultureInfo)
CultureInfo to validate input value format.
IControlSliderNumber Culture(CultureInfo value)
Parameters
value
CultureInfo
CultureInfo to use on validate
Returns
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
Default(Double)
Initial value
IControlSliderNumber Default(double value)
Parameters
value
Double
value
Returns
FracionalDig(Int32)
Define the Fracional Digits of value. Default is 0.
IControlSliderNumber FracionalDig(int value)
Parameters
value
Int32
Fracional Digits
Returns
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
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
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
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
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
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
Styles(SliderNumberStyles, Style)
Overwrite Styles
IControlSliderNumber Styles(SliderNumberStyles styletype, Style value)
Parameters
styletype
SliderNumberStyles
SliderNumberStyles of content
Returns
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