
# IDocumentPainterView interface

The `IDocumentPainterView` interface is an internal interface for the Schematic Editor and it represents the Mini Viewer facility. This is for internal use.

```csharp
public interface IDocumentPainterView
```

**Namespace:** SCH · **Assembly:** Altium.SDK.Interfaces

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [DocumentToPaint](#documenttopaint) | [ISch_Document](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_Document.md) | set | This is for internal use. |

### DocumentToPaint

This is for internal use.

```csharp
void SetState_DocumentToPaint(ISch_Document argDocument);
```

**Type:** [ISch_Document](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_Document.md) · **Access:** write-only

The accessors are extension methods of `IDocumentPainterViewHelper` (`using SCH;`).

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [DrawCurrentZoomRectangle_Invert](#drawcurrentzoomrectangle_invert) | `void` | This is for internal use. |
| [GetStringMaxMin](#getstringmaxmin) | `void` |  |
| [Invalidate](#invalidate) | `void` |  |
| [PaintSingleObject](#paintsingleobject) | `void` | This is for internal use. |
| [Redraw](#redraw) | `void` | This is for internal use. |
| [Refresh](#refresh) | `void` | This is for internal use. |
| [RefreshCurrentZoomWindow](#refreshcurrentzoomwindow) | `void` | This is for internal use. |

### DrawCurrentZoomRectangle_Invert

This is for internal use.

```csharp
void DrawCurrentZoomRectangle_Invert();
```

**Returns:** nothing (`void`)

### GetStringMaxMin

*No description yet.*

```csharp
void GetStringMaxMin(Point argLocation, string argText, int argFontId, out CoordRect argBoundingRect);
void GetStringMaxMin(IPoint argLocation, string argText, int argFontId, out ICoordRect argBoundingRect);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argLocation` | [Point](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/Point.md) | value |
| `argText` | `string` | value |
| `argFontId` | `int` | value |
| `argBoundingRect` | [CoordRect](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/CoordRect.md) | out |

**Returns:** nothing (`void`)

The first overload is an extension method of `IDocumentPainterViewHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### Invalidate

*No description yet.*

```csharp
void Invalidate();
```

**Returns:** nothing (`void`)

### PaintSingleObject

This is for internal use.

```csharp
void PaintSingleObject(ISch_GraphicalObject argGraphicalObject);
void PaintSingleObject(object argGraphicalObject);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argGraphicalObject` | [ISch_GraphicalObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md) | value |

**Returns:** nothing (`void`)

The first overload is an extension method of `IDocumentPainterViewHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### Redraw

This is for internal use.

```csharp
void Redraw(ISch_GraphicalObject argGraphicalObject);
void Redraw(object argGraphicalObject);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argGraphicalObject` | [ISch_GraphicalObject](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_GraphicalObject.md) | value |

**Returns:** nothing (`void`)

The first overload is an extension method of `IDocumentPainterViewHelper` (`using SCH;`) with typed parameters; the second is declared by the interface.

### Refresh

This is for internal use.

```csharp
void Refresh();
```

**Returns:** nothing (`void`)

### RefreshCurrentZoomWindow

This is for internal use.

```csharp
void RefreshCurrentZoomWindow();
```

**Returns:** nothing (`void`)

## Returned by

[ISch_ServerInterface.CreateDocumentPainter](https://altiumdeveloper.github.io/ad-sdk-docs/reference/sch/ISch_ServerInterface.md#createdocumentpainter)
