​
​
​

Gets or sets a value indicating whether the Sidebar is shown. The default value is true.

Syntax

​public bool IsShown { get; set; }
​Public Property IsShown() As Boolean

Examples

The following example shows the 'Sidebar' class with its three properties, namely 'ShowPinButton', 'IsPinned' and 'IsShown'. The 'IsShown' property has been set to 'false', so that the sidebar is not shown.

​TXTextControl.Windows.Forms.Sidebar sidebar = new TXTextControl.Windows.Forms.Sidebar();
sidebar.ShowPinButton = false;
sidebar.IsPinned = true;
sidebar.IsShown = false; // here, the IsShown property is set
​Dim sidebar As TXTextControl.Windows.Forms.Sidebar = New TXTextControl.Windows.Forms.Sidebar()
sidebar.ShowPinButton = False
sidebar.IsPinned = True
sidebar.IsShown = false ' here, the IsShown property is set
​

Remarks

Because of internal usage, it is recommended to use this property instead of Sidebar.Visible to display the sidebar.

​