Location Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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 text image relative to the ruler image.
Syntax
public Point Location { get; set; }Public Property Location As PointExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.Location.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.Location = new System.Drawing.Point(20, 20);
Console.WriteLine($"Location used by Text View Generator: {textViewGenerator.Location}");Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.Location = New System.Drawing.Point(20, 20)
Console.WriteLine($"Location used by Text View Generator: {textViewGenerator.Location}")Limitations
Runtime only.