Nevron Open Vision Documentation
Nevron.Nov.Xml Namespace / NXmlParserListener Class / CollapseWhiteSpaces Method
The string to normalize.
Specifies whether to remove the leading and trailing space character (if present) or not.


In This Topic
    CollapseWhiteSpaces Method
    In This Topic
    Normalizes the given string value by replacing all sequences of whitespace characters with a single space character.
    Syntax
    'Declaration
     
    
    Protected Function CollapseWhiteSpaces( _
       ByVal input As System.String, _
       ByVal trim As System.Boolean _
    ) As System.String
    'Usage
     
    
    Dim instance As NXmlParserListener
    Dim input As System.String
    Dim trim As System.Boolean
    Dim value As System.String
     
    value = instance.CollapseWhiteSpaces(input, trim)
    protected System.string CollapseWhiteSpaces( 
       System.string input,
       System.bool trim
    )

    Parameters

    input
    The string to normalize.
    trim
    Specifies whether to remove the leading and trailing space character (if present) or not.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also