TX Text Control .NET Server

IsCanvasVisible Property

Property|Introduced in 33.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.Core.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDrawing.dll

Description

Gets a value whether the cavas is visible or not. It is visible if it contains only one shape, the shape's CanFitToCanvas property is set to false, its AutoSize property is set to true and the TXDrawingCore's BorderWidth property is 0. If the property's value is false the TXDrawingCore instance can be thought of as a representation of the containing shape where bounds changes of the TXDrawingCore 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 (tXDrawingCore.IsCanvasVisible)
{
    Console.WriteLine("TXDrawing Core is ready for this operation.");
}

Limitations

Read only.