TX Text Control .NET Server

InterpolationMode Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Web
Package
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.Web.DocumentViewer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the interpolation mode which is used for rendering the document. This like DocumentServer.Web.DocumentViewer.Interpolation, this setting affects the rendering result.

Syntax

public InterpolationMode InterpolationMode { get; set; }

Examples

DocumentServer.Web.DocumentViewer.InterpolationMode belongs to the legacy Web Forms viewer. In the current ASP.NET Core viewer, configure the server-rendered component through DocumentViewerSettings.DocumentPath; interactive page state and styling are handled by the viewer client.

documentViewerSettings.DocumentPath = @"App_Data\document.docx";
if (!string.IsNullOrWhiteSpace(documentViewerSettings.DocumentPath))
{
    Console.WriteLine($"Document Path: {documentViewerSettings.DocumentPath}");
}

Remarks

Please see System.Drawing.Drawing2D.InterpolationMode for valid values. The property's default value is InterpolationMode.Default.