combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / TableFieldText Class / OptimizeSpaces Property


In This Topic
    OptimizeSpaces Property (TableFieldText)
    In This Topic

    Gets or sets if undesired spaces (leading, enclosed and remaining) are to be optimized. Imagine that you wish to print a label project using the following variables which are to be separated with a space:


    <TITLE> <FIRSTNAME> <LASTNAME>


    If there is a record in which no title exists, this variable would remain empty but the following space would be printed. First name and Last name appear with a leading space. If, for example, the variable “Firstname” was empty, there would be two spaces between “Title” and “Lastname” (enclosed spaces). If all three variables were empty, both spaces would remain (remaining spaces). This line is then not empty and would not be automatically ignored. In these cases, this property assists in the automatic removal of leading, enclosed and remaining spaces. Multiple enclosed spaces will be automatically reduced to one space.

    Syntax
    'Declaration
     
    
    Public Property OptimizeSpaces As String
    public string OptimizeSpaces {get; set;}
    public:
    property String^ OptimizeSpaces {
       String^ get();
       void set (    String^ value);
    }
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also