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; }

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