ComponentOne Carousel for ASP.NET Web Forms
Task-Based Help / Setting the Carousel Orientation
In This Topic
    Setting the Carousel Orientation
    In This Topic

    By default the C1Carousel control appears with a horizontal orientation. This example will show you how you can use Orientation property to change the Carousel to be vertically orientated.

    In Source View

    In Source view add Orientation="Vertical" to the <cc1:C1Carousel> tag so it appears similar to the following:

    To write code in Source View

    <cc1:C1Carousel ID="C1Carousel1" runat="server" Orientation="Vertical">

    In the Properties Window

    In Design view, select the C1Carousel control and in the Properties window set the Orientation property to Vertical.

    In the Tasks Menu

    In Design view, click the C1Carousel's Smart Tag to open the Tasks menu and set the Orientation property to Vertical. See C1Carousel Smart Tag for more about the Tasks menu.

    In Code

    Add the following code to the Page_Load event to set the Orientation property to Vertical:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1Carousel1.Orientation = "Vertical"
                                                    
    

    To write code in C#

    C#
    Copy Code
    this.C1Carousel1.Orientation = "Vertical";