VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Annotation.Measurements Namespace / MeasurementAnnotationData Class / MeasuringTextTemplate Property
Syntax Remarks Requirements SeeAlso
In This Topic
    MeasuringTextTemplate Property (MeasurementAnnotationData)
    In This Topic
    Gets or sets the text block template for measurement result.
    Syntax
    'Declaration
    
    <DescriptionAttribute("The text block template for measurement result.")>
    Public Property MeasuringTextTemplate As System.String
    
    
    [Description("The text block template for measurement result.")]
    public System.String MeasuringTextTemplate { get; set; }
    
    
    [Description("The text block template for measurement result.")]
    public: __property System.String get_MeasuringTextTemplate();
    public: __property void set_MeasuringTextTemplate(
    System.String value
    );
    [Description("The text block template for measurement result.")]
    public:
    property System.String MeasuringTextTemplate { System.String get(); void set(System.String value); }
    Remarks

    Text template has format, which is similar to a common format string, but template uses the dictionary keys (for example "{Length}"), which are returned by GetMeasuredValues(VintasoftImage) method, instead of common indexes ({0}).
    Example: "{Length:f2}" - this template can be used to get lines length of LinearMeasuringData with 2 decimal places.

    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also