Xceed Words for .NET v5.2 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Container Class / RemoveTextInGivenFormat Method
The formatting that the text must match in order to be removed.
MatchFormattingOptions value indicating how the formatting should be matched.


In This Topic
    RemoveTextInGivenFormat Method
    In This Topic
    Removes all text occurences that match the provided format.
    Syntax
    'Declaration
     
    
    Public Function RemoveTextInGivenFormat( _
       ByVal formattingToMatch As Formatting, _
       Optional ByVal formattingOptions As MatchFormattingOptions _
    ) As Integer
    'Usage
     
    
    Dim instance As Container
    Dim formattingToMatch As Formatting
    Dim formattingOptions As MatchFormattingOptions
    Dim value As Integer
     
    value = instance.RemoveTextInGivenFormat(formattingToMatch, formattingOptions)

    Parameters

    formattingToMatch
    The formatting that the text must match in order to be removed.
    formattingOptions
    MatchFormattingOptions value indicating how the formatting should be matched.

    Return Value

    The number of text occurences that were removed.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also