TX Text Control .NET Server

Location Property

Property|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Gets or sets a location, in pixels. When a RulerBarViewGenerator object is connected with a TextViewGenerator object, this location is used to adjust the ruler with the text. It determines the position of the ruler image relative to the text image.

Syntax

public Point Location { get; set; }

Examples

The following example uses RulerBarViewGenerator.Location to configure location as part of the ruler bar view generator workflow. The configured value is checked before the workflow continues.

rulerBarViewGenerator.Location = new System.Drawing.Point(20, 20);
Console.WriteLine($"Location used by Ruler Bar View Generator: {rulerBarViewGenerator.Location}");

Limitations

Runtime only.