VerticalScaling Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or sets an images's vertical scaling factor in percent.
Syntax
public int VerticalScaling { get; set; }Public Property VerticalScaling As IntegerExamples
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);Dim image As New TXTextControl.Image() With { .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)