HorizontalScaling Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets an images's horizontal scaling factor in percent.
Syntax
public int HorizontalScaling { get; set; }Public Property HorizontalScaling As IntegerExamples
The following example inserts and configures a named, accessible company logo by using Image.HorizontalScaling.
TXTextControl.Image image = new() { FileName = @"Images\company-logo.png", Name = "CompanyLogo" };
textControl.Images.Add(image, -1);
image.HorizontalScaling = 10;
Console.WriteLine($"Horizontal Scaling used by Image: {image.HorizontalScaling}");
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.HorizontalScaling = 10
Console.WriteLine($"Horizontal Scaling used by Image: {image.HorizontalScaling}")
textControl.Save("report-with-logo.docx", StreamType.WordprocessingML)