Determines the content layout that has to be intialized and rendered for the Sidebar. Beside the predefined TextControl feature layouts SidebarContentLayout.FieldNavigator, SidebarContentLayout.Find, SidebarContentLayout.Goto, SidebarContentLayout.Replace, SidebarContentLayout.Styles, SidebarContentLayout.TrackedChanges, SidebarContentLayout.ConditionalInstructions, SidebarContentLayout.DocumentSettings, SidebarContentLayout.Comments and SidebarContentLayout.About, the user can choose SidebarContentLayout.Custom to place a custom control as content. To disable setting any content for this Sidebar, set the property to SidebarContentLayout.None. The default value is SidebarContentLayout.None.

Syntax

public SidebarContentLayout ContentLayout { get; set; }
Public Property ContentLayout() As SidebarContentLayout

Examples

This example describes the TXTextControl.Windows.Forms.Sidebar.ContentLayout property. Here, it is set to TXTextControl.Windows.Forms.Sidebar.SidebarContentLayout.None - which is also the default value.

TXTextControl.Windows.Forms.Sidebar sidebar = new TXTextControl.Windows.Forms.Sidebar();
sidebar.ShowPinButton = false;
sidebar.IsPinned = false;
sidebar.IsShown = false;
sidebar.IsSizable = false;
sidebar.ShowTitle = false; 
sidebar.TitleFont = new System.Drawing.Font("Times New Roman", 12 ); 
sidebar.Text = "mySidebarText"; // here, the Text property is set
sidebar.DialogStyle = TXTextControl.Windows.Forms.Sidebar.SidebarDialogStyle.Standard; 
sidebar.DialogSize = System.Drawing.Size.Empty; 
sidebar.DialogLocation = System.Drawing.Point.Empty; 
sidebar.ContentLayout = TXTextControl.Windows.Forms.Sidebar.SidebarContentLayout.None;// here, the ContentLayout property is set
Dim sidebar As TXTextControl.Windows.Forms.Sidebar = New TXTextControl.Windows.Forms.Sidebar()
sidebar.ShowPinButton = False
sidebar.IsPinned = False
sidebar.IsShown = False
sidebar.IsSizable = False
 sidebar.ShowTitle = False
sidebar.TitleFont = New System.Drawing.Font("Times New Roman", 12)
sidebar.Text = "mySidebarText"
sidebar.DialogStyle = TXTextControl.Windows.Forms.Sidebar.SidebarDialogStyle.Standard
sidebar.DialogSize = System.Drawing.Size.Empty
sidebar.DialogLocation = System.Drawing.Point.Empty
sidebar.ContentLayout = TXTextControl.Windows.Forms.Sidebar.SidebarContentLayout.None ' here, the ContentLayout property is set

Remarks

The SidebarContentLayout.Goto, SidebarContentLayout.Find, SidebarContentLayout.Replace, SidebarContentLayout.ConditionalInstructions, SidebarContentLayout.DocumentSettings and SidebarContentLayout.FieldNavigator layouts differ due to the dock style setting. If the Sidebar.Dock property is set to DockStyle.Left or DockStyle.Right, a vertical alignment layout is shown. DockStyle.Top or DockStyle.Botton aligns the layout horizontally. If the Dock property is set to DockStyle.Fill or DockStyle.None, the sidebar's content is displayed in dialog style.