TX Text Control .NET for Windows Forms

IsCanvasVisible Property

Property|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WinForms.SDK as TXDrawing.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a value whether the TX Drawing Control is interpreted as canvas or not. The control is not interpreted as canvas if it contains only one shape, the shape's CanFitToCanvas property is set to false, its AutoSize property is set to true and the control's BorderWidth property is 0. If the property's value is false the control can be thought of as a representation of the containing shape where bounds changes of the control lead to considering changes of the shape and vise versa.

Syntax

public bool IsCanvasVisible { get; }

Examples

The following example checks the is canvas visible state before recording the object's current status.

if (tXDrawingControl.IsCanvasVisible)
{
    Console.WriteLine("TXDrawing Control is ready for this operation.");
}

Limitations

Read only.