Class SliderPropertiesBuilder
Represents the Accordion Properties.
Inheritance
System.Object
SliderPropertiesBuilder
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class SliderPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
SliderPropertiesBuilder()
Declaration
public SliderPropertiesBuilder()
SliderPropertiesBuilder(Slider)
Declaration
public SliderPropertiesBuilder(Slider slider)
Parameters
| Type |
Name |
Description |
| Slider |
slider |
|
Fields
slider
Declaration
Field Value
Methods
AllowMouseWheel()
Specifies the allowMouseWheel property
Declaration
public SliderPropertiesBuilder AllowMouseWheel()
Returns
AllowMouseWheel(Boolean)
Specifies the mousewheel property.It is the boolean type
Declaration
public SliderPropertiesBuilder AllowMouseWheel(bool allowMouseWheel)
Parameters
| Type |
Name |
Description |
| System.Boolean |
allowMouseWheel |
|
Returns
AnimationSpeed(Int32)
Specifies the animationSpeed of the slider.
Declaration
public SliderPropertiesBuilder AnimationSpeed(int animationSpeed)
Parameters
| Type |
Name |
Description |
| System.Int32 |
animationSpeed |
|
Returns
ClientSideEvents(Action<SliderClientSideEventsBuilder>)
Declaration
public SliderPropertiesBuilder ClientSideEvents(Action<SliderClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
CssClass(String)
Specify the CSS class to slider to achieve custom theme.
Declaration
public SliderPropertiesBuilder CssClass(string cssClass)
Parameters
| Type |
Name |
Description |
| System.String |
cssClass |
|
Returns
EnableAnimation()
Specifies the animation behavior of the slider.
Declaration
public SliderPropertiesBuilder EnableAnimation()
Returns
EnableAnimation(Boolean)
Specifies the animation behavior of the slider.A boolean variable enableAnimation is passed as an argument.
Declaration
public SliderPropertiesBuilder EnableAnimation(bool enableAnimation)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enableAnimation |
|
Returns
Enabled()
Specifies the state of the slider.
Declaration
public SliderPropertiesBuilder Enabled()
Returns
Enabled(Boolean)
Specifies the state of the slider.A boolean variable enabled is passed.
Declaration
public SliderPropertiesBuilder Enabled(bool enabled)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enabled |
|
Returns
EnablePersistence()
Specify the enablePersistence to slider to save current model value to browser cookies for state maintains.
Declaration
public SliderPropertiesBuilder EnablePersistence()
Returns
EnablePersistence(Boolean)
Specify the enablePersistence to slider to save current model value to browser cookies for state maintains.A boolean variable enablePersistence is passed as an argument.
Declaration
public SliderPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enablePersistence |
|
Returns
EnableRTL()
Specifies the Right to Left Direction of the slider.
Declaration
public SliderPropertiesBuilder EnableRTL()
Returns
EnableRTL(Boolean)
Specifies the Right to Left Direction of the slider.enableRTL is the boolean variable passed.
Declaration
public SliderPropertiesBuilder EnableRTL(bool enableRTL)
Parameters
| Type |
Name |
Description |
| System.Boolean |
enableRTL |
|
Returns
Height(String)
Specifies the height of the slider.
Declaration
public SliderPropertiesBuilder Height(string height)
Parameters
| Type |
Name |
Description |
| System.String |
height |
|
Returns
HtmlAttributes(IDictionary<String, Object>)
Declaration
public SliderPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IDictionary<System.String, System.Object> |
itemHtmlAttributes |
|
Returns
IncrementStep(Int32)
Specifies the incremental step value of the slider.
Declaration
public SliderPropertiesBuilder IncrementStep(int incrementStep)
Parameters
| Type |
Name |
Description |
| System.Int32 |
incrementStep |
|
Returns
LargeStep(Int32)
Specifies the distance between two major (large) ticks from the scale of the slider.
Declaration
public SliderPropertiesBuilder LargeStep(int largeStep)
Parameters
| Type |
Name |
Description |
| System.Int32 |
largeStep |
|
Returns
MaxValue(Int32)
Specifies the ending value of the slider.
Declaration
public SliderPropertiesBuilder MaxValue(int maxValue)
Parameters
| Type |
Name |
Description |
| System.Int32 |
maxValue |
|
Returns
MinValue(Int32)
Specifies the starting value of the slider.
Declaration
public SliderPropertiesBuilder MinValue(int minValue)
Parameters
| Type |
Name |
Description |
| System.Int32 |
minValue |
|
Returns
Orientation(Orientation)
Specifies the orientation of the slider.
Declaration
public SliderPropertiesBuilder Orientation(Orientation orientation)
Parameters
Returns
ReadOnly()
Specifies the readOnly of the slider.
Declaration
public SliderPropertiesBuilder ReadOnly()
Returns
ReadOnly(Boolean)
Specifies the readOnly of the slider.A boolean variable readOnly is passed as an argument.
Declaration
public SliderPropertiesBuilder ReadOnly(bool readOnly)
Parameters
| Type |
Name |
Description |
| System.Boolean |
readOnly |
|
Returns
Render()
Render the Slider instance.
Declaration
Shows/Hide the buttons of the slider.
Declaration
public SliderPropertiesBuilder ShowButtons()
Returns
Shows/Hide the buttons of the slider.showButtons is the passed boolean variable.
Declaration
public SliderPropertiesBuilder ShowButtons(bool showButtons)
Parameters
| Type |
Name |
Description |
| System.Boolean |
showButtons |
|
Returns
ShowRoundedCorner()
Specifies the rounded corner behavior for slider.
Declaration
public SliderPropertiesBuilder ShowRoundedCorner()
Returns
ShowRoundedCorner(Boolean)
Specifies the rounded corner behavior for slider.A boolean variable showRoundedCorner is passed as an argument.
Declaration
public SliderPropertiesBuilder ShowRoundedCorner(bool showRoundedCorner)
Parameters
| Type |
Name |
Description |
| System.Boolean |
showRoundedCorner |
|
Returns
ShowScale()
Shows/Hide the major (large) and minor (small) ticks in the scale of the slider.
Declaration
public SliderPropertiesBuilder ShowScale()
Returns
ShowScale(Boolean)
Shows/Hide the major (large) and minor (small) ticks in the scale of the slider.showScale is the passed boolean variable.
Declaration
public SliderPropertiesBuilder ShowScale(bool showScale)
Parameters
| Type |
Name |
Description |
| System.Boolean |
showScale |
|
Returns
ShowSmallTicks()
Specifies the small ticks from the scale of the slider.
Declaration
public SliderPropertiesBuilder ShowSmallTicks()
Returns
ShowSmallTicks(Boolean)
Specifies the small ticks from the scale of the slider.A boolean variable showSmallTicks is passed as an argument.
Declaration
public SliderPropertiesBuilder ShowSmallTicks(bool showSmallTicks)
Parameters
| Type |
Name |
Description |
| System.Boolean |
showSmallTicks |
|
Returns
Specifies the showTooltip to shows the current Slider value, while moving the Slider handle or clicking on the slider handle of the slider.
Declaration
public SliderPropertiesBuilder ShowTooltip()
Returns
Specifies the showTooltip to shows the current Slider value, while moving the Slider handle or clicking on the slider handle of the slider.A boolean variable showTooltip is passed as an argument.
Declaration
public SliderPropertiesBuilder ShowTooltip(bool showTooltip)
Parameters
| Type |
Name |
Description |
| System.Boolean |
showTooltip |
|
Returns
SliderType(SlideType)
Specifies the sliderType of the slider.
Declaration
public SliderPropertiesBuilder SliderType(SlideType sliderType)
Parameters
Returns
SmallStep(Int32)
Specifies the distance between two minor (small) ticks from the scale of the slider.
Declaration
public SliderPropertiesBuilder SmallStep(int smallStep)
Parameters
| Type |
Name |
Description |
| System.Int32 |
smallStep |
|
Returns
ToHtmlString()
Returns an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
| Type |
Description |
| System.String |
|
Value(String)
Specifies the value of the slider. But it’s not applicable for range slider. To range slider we can use values property.
Declaration
public SliderPropertiesBuilder Value(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
Values(String)
Specifies the values of the range slider. But it’s not applicable for default and minRange sliders. we can use value property for default and minRange sliders.
Declaration
public SliderPropertiesBuilder Values(string values)
Parameters
| Type |
Name |
Description |
| System.String |
values |
|
Returns
Width(String)
Specifies the width of the slider.
Declaration
public SliderPropertiesBuilder Width(string width)
Parameters
| Type |
Name |
Description |
| System.String |
width |
|
Returns
Implements
System.Web.IHtmlString