AdaptBounds Event
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WPF. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
Description
Indicates that the visible bounds of the displayed shapes have been changed (by changing the shape's angle, outline width, yellow adjust rectangles or the canvas' border width) in so far that the canvas requires an update of its bounds. The event always raises if the visible bounds exceed the canvas' bounds. If IsCanvasVisible is false, AdaptBounds is also raised if considering changes lead to a decreasing of the visible shape bounds. The event handler receives an argument of type EventArgs containing data related to this event.
Syntax
public event EventHandler AdaptBounds;Public Event AdaptBounds As EventHandlerExamples
The following example records useful context when adapt bounds occurs.
tXDrawingCore.AdaptBounds += (sender, e) =>
{
Console.WriteLine($"Adapt Bounds at {DateTime.Now:u}");
};AddHandler tXDrawingCore.AdaptBounds,
Sub(sender, e)
Console.WriteLine($"Adapt Bounds at {DateTime.Now:u}")
End Sub