Gets or sets a value indicating whether the Sidebar's close button is shown. The default value is true.

Syntax

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

Examples

The following example shows the Sidebar class with its four properties. Here, the ShowCloseButton property has been set to 'false' so that the close button of the sidebar is not shown.

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