TX Text Control .NET for WPF

Refresh Method

Method|Introduced in 23.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Refreshes the drawing.

Syntax

Refresh()

Refreshes the complete drawing. Programmatic changes performed with the drawing's properties and methods are not automatically refreshed. Calling this method is not necessary, when the drawing frame's layout in the text is changed.

public void Refresh();

Refresh(Rectangle)

Refreshes the specified part of drawing. Programmatic changes performed with the drawing's properties and methods are not automatically refreshed. Calling this method is not necessary, when the drawing frame's layout in the text is changed.

public void Refresh(Rectangle clipRectangle);
ParameterDescription
clipRectangle

Specifies the rectangular part of the drawing to refresh, in pixels, relative to the top-left corner of the drawing.

Examples

The following example uses Refresh in a focused Drawing Frame workflow. The created object is then available to the surrounding document workflow.

drawingFrame.Refresh(new System.Drawing.Rectangle(20, 20, 600, 400));
Console.WriteLine("Drawing Frame is ready for use.");