TX Text Control .NET for WPF

VerticalScaling Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets an images's vertical scaling factor in percent.

Syntax

public int VerticalScaling { get; set; }

Examples

The following example inserts and configures a named, accessible company logo by using Image.VerticalScaling.

TXTextControl.Image image = new() { FileName = @"Images\company-logo.png", Name = "CompanyLogo" };
textControl.Images.Add(image, -1);

image.VerticalScaling = 10;
Console.WriteLine($"Vertical Scaling used by Image: {image.VerticalScaling}");

textControl.Save("report-with-logo.docx", StreamType.WordprocessingML);

Further Reading

  • Resize Images to Fit into Page –