IsCanvasVisible Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property IsCanvasVisible As BooleanExamples
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.");
}If tXDrawingCore.IsCanvasVisible Then
Console.WriteLine("TXDrawing Core is ready for this operation.")
End IfLimitations
Read only.