ComponentOne Splitter for ASP.NET AJAX: Splitter for ASP.NET AJAX Task-Based Help > Creating Different Split Types > Creating a Horizontal Split

Creating a Horizontal Split

Creating a horizontal split is as simple as setting one property. In this topic, you'll learn how to set the Orientation property in Design view, Source view, and in code.

For more information on horizontal splits, see Horizontal Split.

In Design View

Complete the following steps:

1.   Add the C1Splitter control to the form.

2.   In the Properties window, set the splitter's Orientation to Horizontal.

In Source View

To create a horizontal split, place Orientation="Horizontal" within the <cc1:C1Splitter> tag. Once the Orientation property has been set, the markup will resemble the following:

 

<cc1:C1Splitter ID="C1Splitter1" runat="server" Height="212px" Orientation="Horizontal"

Width="221px">

In Code

Complete the following steps:

1.   Import the following namespace into your project:

      Visual Basic

Imports C1.Web.UI.Controls.C1Splitter

      C#

using C1.Web.UI.Controls.C1Splitter;

2.   Add the following code, which sets the Orientation property, to the Page_Load event:

      Visual Basic

C1Splitter1.Orientation = Orientation.Horizontal

      C#

C1Splitter1.Orientation = Orientation.Horizontal;

3.   Run the program.

Description: D:\Whidbey\T109\C1Splitter\WordDocuments\Other Graphics\10.pngThis Topic Illustrates the Following:

The splitter bar is now horizontal. The result of this topic will resemble the following image:

 

Description: D:\Whidbey\T109\C1Splitter\WordDocuments\TBH\HorizontalSplit_Final.png


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.