PrintPaint Method
- Namespace
TXTextControl.WPF. Drawing
- Package
TXTextControl.asTextControl. WPF. SDK TXDrawing.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Renders the displayed shapes on the specified System.Drawing.Graphics object.
Syntax
PrintPaint(Graphics, Rectangle)
Renders only the displayed shapes on the specified System.Drawing.Graphics object. No activated UI elements are rendered.
public void PrintPaint(Graphics graphics, Rectangle position);Public Sub PrintPaint(graphics As Graphics, position As Rectangle)| Parameter | Description |
|---|---|
| graphics | Specifies the object of type |
| position | Specifies the position to draw on the specified |
PrintPaint(Graphics, Rectangle, bool)
Renders the displayed shapes on the specified System.Drawing.Graphics object with or without activated UI elements.
public void PrintPaint(Graphics graphics, Rectangle position, bool showUIElements);Public Sub PrintPaint(graphics As Graphics, position As Rectangle, showUIElements As Boolean)| Parameter | Description |
|---|---|
| graphics | Specifies the object of type |
| position | Specifies the position to draw on the specified |
| showUIElements | Specifies whether the activated UI elements are rendered on the specified |
PrintPaint(Rectangle, bool)
public string PrintPaint(Rectangle position, bool isActivated);Public Function PrintPaint(position As Rectangle, isActivated As Boolean) As StringExamples
The following example uses Print Paint in a focused TXDrawing Control workflow.
var result = tXDrawingControl.PrintPaint(new System.Drawing.Rectangle(20, 20, 600, 400), true);
Console.WriteLine($"Print Paint result: {result}");Dim result = tXDrawingControl.PrintPaint(New System.Drawing.Rectangle(20, 20, 600, 400), True)
Console.WriteLine($"Print Paint result: {result}")