Class RotatorPropertiesBuilder
Represents a class for RotatorPropertiesBuilder which includes enable auto play, show play button, show navigation button, and show thumbnail properties.
Inheritance
System.Object
RotatorPropertiesBuilder
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 RotatorPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
RotatorPropertiesBuilder()
Declaration
public RotatorPropertiesBuilder()
RotatorPropertiesBuilder(Rotator)
Specifies rotator properties builder.
Declaration
public RotatorPropertiesBuilder(Rotator rotator)
Parameters
Type |
Name |
Description |
Rotator |
rotator |
|
Fields
rotator
Declaration
Field Value
Properties
ItemsCollection
Declaration
public List<RotatorBaseItem> ItemsCollection { get; set; }
Property Value
Methods
AllowKeyboardNavigation()
Turns on keyboard interaction with the Rotator items. You must set this property to true to access the following keyboard shortcuts.
Declaration
public RotatorPropertiesBuilder AllowKeyboardNavigation()
Returns
AllowKeyboardNavigation(Boolean)
Turns on keyboard interaction with the Rotator items. You must set this property to true to access the following keyboard shortcuts.with boolean argument.
Declaration
public RotatorPropertiesBuilder AllowKeyboardNavigation(bool allowKeyboardNavigation)
Parameters
Type |
Name |
Description |
System.Boolean |
allowKeyboardNavigation |
|
Returns
AnimationSpeed(Int32)
Sets the animationSpeed of slide transition.
Declaration
public RotatorPropertiesBuilder AnimationSpeed(int animationSpeed)
Parameters
Type |
Name |
Description |
System.Int32 |
animationSpeed |
|
Returns
AnimationType(String)
Specifies the animationType type for the Rotator Item. animationType options include slide, fastSlide, slowSlide, and other custom easing animationTypes.
Declaration
public RotatorPropertiesBuilder AnimationType(string animationType)
Parameters
Type |
Name |
Description |
System.String |
animationType |
|
Returns
CircularMode()
Enables the circular mode item rotation.
Declaration
public RotatorPropertiesBuilder CircularMode()
Returns
CircularMode(Boolean)
Enables the circular mode item rotation.with boolean argument.
Declaration
public RotatorPropertiesBuilder CircularMode(bool circularMode)
Parameters
Type |
Name |
Description |
System.Boolean |
circularMode |
|
Returns
ClientSideEvents(Action<RotatorClientSideEventsBuilder>)
ClientSide Events for RotatorPropertiesBuilder
Declaration
public RotatorPropertiesBuilder ClientSideEvents(Action<RotatorClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
CssClass(String)
Specify the CSS class to Rotator to achieve custom theme.
Declaration
public RotatorPropertiesBuilder CssClass(string customCssClass)
Parameters
Type |
Name |
Description |
System.String |
customCssClass |
|
Returns
Datasource(DataSource)
Specify the list of data which contains a set of data fields. Each data value is used to render an item for the Rotator.with object argument.
Declaration
public RotatorPropertiesBuilder Datasource(DataSource dataSource)
Parameters
Returns
Datasource(Action<DataSourceBuilder>)
Specify the list of data which contains a set of data fields. Each data value is used to render an item for the Rotator.with array argument.
Declaration
public RotatorPropertiesBuilder Datasource(Action<DataSourceBuilder> dataSource)
Parameters
Returns
Datasource(IEnumerable)
Specify the list of data which contains a set of data fields. Each data value is used to render an item for the Rotator.with IEnumerable argument.
Declaration
public RotatorPropertiesBuilder Datasource(IEnumerable dataSource)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerable |
dataSource |
|
Returns
Delay(Int32)
Sets the delay between the Rotator Items move after the slide transition.
Declaration
public RotatorPropertiesBuilder Delay(int delay)
Parameters
Type |
Name |
Description |
System.Int32 |
delay |
|
Returns
DisplayItemCount(String)
Specifies the number of Rotator Items to be displayed.
Declaration
public RotatorPropertiesBuilder DisplayItemCount(string displayItemCount)
Parameters
Type |
Name |
Description |
System.String |
displayItemCount |
|
Returns
EnableAutoPlay()
Rotates the Rotator Items continuously without user interference.
Declaration
public RotatorPropertiesBuilder EnableAutoPlay()
Returns
EnableAutoPlay(Boolean)
Rotates the Rotator Items continuously without user interference.with boolean argument.
Declaration
public RotatorPropertiesBuilder EnableAutoPlay(bool enableAutoPlay)
Parameters
Type |
Name |
Description |
System.Boolean |
enableAutoPlay |
|
Returns
Enabled()
Enables or disables the Rotator control.
Declaration
public RotatorPropertiesBuilder Enabled()
Returns
Enabled(Boolean)
Enables or disables the Rotator control.with boolean argument.
Declaration
public RotatorPropertiesBuilder Enabled(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Returns
EnableResize()
The following property has deprecated, we have added 'IsResponsive' API to achieve this behavior.
Resizes the Rotator when the browser is resized.
Declaration
[Obsolete("The EnableResize property has been deprecated.Use 'IsResponsive' instead of EnableResize")]
public RotatorPropertiesBuilder EnableResize()
Returns
EnableResize(Boolean)
The following property has deprecated, we have added 'IsResponsive' API to achieve this behavior.
Declaration
public RotatorPropertiesBuilder EnableResize(bool isResponsive)
Parameters
Type |
Name |
Description |
System.Boolean |
isResponsive |
|
Returns
EnableRTL()
Specifies right to left transition of slides.
Declaration
public RotatorPropertiesBuilder EnableRTL()
Returns
EnableRTL(Boolean)
Specifies right to left transition of slides.with boolean argument.
Declaration
public RotatorPropertiesBuilder EnableRTL(bool enableRTL)
Parameters
Type |
Name |
Description |
System.Boolean |
enableRTL |
|
Returns
EnableTouch()
Enables the touch mode item rotation.
Declaration
public RotatorPropertiesBuilder EnableTouch()
Returns
EnableTouch(Boolean)
Enables the touch mode item rotation.with boolean argument.
Declaration
public RotatorPropertiesBuilder EnableTouch(bool enableTouch)
Parameters
Type |
Name |
Description |
System.Boolean |
enableTouch |
|
Returns
FrameSpace(String)
Sets the space between the Rotator Items.
Declaration
public RotatorPropertiesBuilder FrameSpace(string frameSpace)
Parameters
Type |
Name |
Description |
System.String |
frameSpace |
|
Returns
HtmlAttributes(IDictionary<String, Object>)
Specifies the list of html attributes to be add rotator control.
Declaration
public RotatorPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
itemHtmlAttributes |
|
Returns
IsResponsive()
Resizes the Rotator when the browser is resized.
Declaration
public RotatorPropertiesBuilder IsResponsive()
Returns
IsResponsive(Boolean)
Resizes the Rotator when the browser is resized.with boolean argument.
Declaration
public RotatorPropertiesBuilder IsResponsive(bool isResponsive)
Parameters
Type |
Name |
Description |
System.Boolean |
isResponsive |
|
Returns
Items(Action<RotatorBaseItemAdder>)
Specifies the items of the Rotator.
Declaration
public RotatorPropertiesBuilder Items(Action<RotatorBaseItemAdder> items)
Parameters
Returns
NavigateSteps(String)
Specifies the number of Rotator Items to navigate on a single click (next/previous/play buttons). The navigateSteps property value must be less than or equal to the displayItemsCount property value.
Declaration
public RotatorPropertiesBuilder NavigateSteps(string navigateSteps)
Parameters
Type |
Name |
Description |
System.String |
navigateSteps |
|
Returns
Orientation(Orientation)
Specifies the orientation for the Rotator control, that is, whether it must be rendered horizontally or vertically.
Declaration
public RotatorPropertiesBuilder Orientation(Orientation orientation)
Parameters
Returns
Specifies the position of the showPager in the Rotator Item.
Declaration
public RotatorPropertiesBuilder PagerPosition(PagerPosition pagerPosition)
Parameters
Returns
Query(String)
Retrieves data from remote data. This property is applicable only when a remote data source is used.
Declaration
public RotatorPropertiesBuilder Query(string query)
Parameters
Type |
Name |
Description |
System.String |
query |
|
Returns
Render()
Declaration
RotatorFields(Action<RotatorFieldsBuilder>)
Defines mapping fields for the data items of the Rotator.
Declaration
public RotatorPropertiesBuilder RotatorFields(Action<RotatorFieldsBuilder> fields)
Parameters
Returns
ShowCaption()
If the Rotator Item is an image, you can specify a caption for the Rotator Item. The caption text for each Rotator Item must be set by using the title attribute of the respective tag. The caption cannot be displayed if multiple Rotator Items are present.
Declaration
public RotatorPropertiesBuilder ShowCaption()
Returns
ShowCaption(Boolean)
If the Rotator Item is an image, you can specify a caption for the Rotator Item. The caption text for each Rotator Item must be set by using the title attribute of the respective tag. The caption cannot be displayed if multiple Rotator Items are present.with boolean argument.
Declaration
public RotatorPropertiesBuilder ShowCaption(bool showCaption)
Parameters
Type |
Name |
Description |
System.Boolean |
showCaption |
|
Returns
Turns on or off the slide buttons (next and previous) in the Rotator Items. Slide buttons are used to navigate the Rotator Items.
Declaration
public RotatorPropertiesBuilder ShowNavigateButton()
Returns
Turns on or off the slide buttons (next and previous) in the Rotator Items. Slide buttons are used to navigate the Rotator Items.with boolean argument.
Declaration
public RotatorPropertiesBuilder ShowNavigateButton(bool showNavigateButton)
Parameters
Type |
Name |
Description |
System.Boolean |
showNavigateButton |
|
Returns
Turns on or off the pager support in the Rotator control. The Pager is used to navigate the Rotator Items.
Declaration
public RotatorPropertiesBuilder ShowPager()
Returns
Turns on or off the pager support in the Rotator control. The Pager is used to navigate the Rotator Items.with boolean argument.
Declaration
public RotatorPropertiesBuilder ShowPager(bool showPager)
Parameters
Type |
Name |
Description |
System.Boolean |
showPager |
|
Returns
Enable play / pause button on rotator.
Declaration
public RotatorPropertiesBuilder ShowPlayButton()
Returns
Enable play / pause button on rotator.with boolean argument.
Declaration
public RotatorPropertiesBuilder ShowPlayButton(bool showPlayButton)
Parameters
Type |
Name |
Description |
System.Boolean |
showPlayButton |
|
Returns
ShowThumbnail()
Turns on or off thumbnail support in the Rotator control. Thumbnail is used to navigate between slides. Thumbnail supports only single slide transition You must specify the source for thumbnail elements through the thumbnailSourceID property.
Declaration
public RotatorPropertiesBuilder ShowThumbnail()
Returns
ShowThumbnail(Boolean)
Turns on or off thumbnail support in the Rotator control. Thumbnail is used to navigate between slides. Thumbnail supports only single slide transition You must specify the source for thumbnail elements through the thumbnailSourceID property.with boolean argument.
Declaration
public RotatorPropertiesBuilder ShowThumbnail(bool showThumbnail)
Parameters
Type |
Name |
Description |
System.Boolean |
showThumbnail |
|
Returns
SlideHeight(String)
Sets the height of a Rotator Item.
Declaration
public RotatorPropertiesBuilder SlideHeight(string slideHeight)
Parameters
Type |
Name |
Description |
System.String |
slideHeight |
|
Returns
SlideWidth(String)
Sets the width of a Rotator Item.
Declaration
public RotatorPropertiesBuilder SlideWidth(string slideWidth)
Parameters
Type |
Name |
Description |
System.String |
slideWidth |
|
Returns
StartIndex(String)
Sets the index of the slide that must be displayed first.
Declaration
public RotatorPropertiesBuilder StartIndex(string startIndex)
Parameters
Type |
Name |
Description |
System.String |
startIndex |
|
Returns
StopOnHover()
Pause the auto play while hover on the rotator content.
Declaration
public RotatorPropertiesBuilder StopOnHover()
Returns
StopOnHover(Boolean)
Pause the auto play while hover on the rotator content.with boolean argument.
Declaration
public RotatorPropertiesBuilder StopOnHover(bool stopOnHover)
Parameters
Type |
Name |
Description |
System.Boolean |
stopOnHover |
|
Returns
Template(String)
Render the rotator control with template via dataSource.
Declaration
public RotatorPropertiesBuilder Template(string template)
Parameters
Type |
Name |
Description |
System.String |
template |
|
Returns
TemplateId(String)
Render the rotator control with script-jsRender template.
Declaration
public RotatorPropertiesBuilder TemplateId(string templateId)
Parameters
Type |
Name |
Description |
System.String |
templateId |
|
Returns
ThumbnailSourceID(String)
Specifies the source for thumbnail elements.
Declaration
public RotatorPropertiesBuilder ThumbnailSourceID(string thumbnailSourceID)
Parameters
Type |
Name |
Description |
System.String |
thumbnailSourceID |
|
Returns
ToHtmlString()
Returns an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
Implements
System.Web.IHtmlString