LegacyText Example - C# - Latest

Spectrum Spatial Guide

Product type
Software
Portfolio
Locate
Product family
Spectrumâ„¢ software
Product
Spectrumâ„¢ software > Spatial > Spectrum Spatial
Version
Latest
ft:locale
en-US
Product name
Spectrum Technology Platform
ft:title
Spectrum Spatial Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-03-07
ft:lastPublication
2025-03-07T10:28:48.112000

The following shows a C# example that returns a LegacyText object.


public static LegacyText buildLegacyText()
{
    LegacyText legacyText = new LegacyText();
    Envelope envelope = buildEnvelope();
    legacyText.Rectangle = envelope;
    legacyText.Text = "This is Legacy Text";
    legacyText.srsName = "EPSG:4326";
    Angle angle = new Angle();
    angle.Value = 90;
    angle.uom = AngularUnit.Degree;
    legacyText.Angle = angle;
    return legacyText;
}