Version

GetAvailableParagraphStyles Method

Enumerates the available Paragraph styles
Syntax
'Declaration
 
Public Function GetAvailableParagraphStyles( _
   Optional ByVal includeHiddenStyles As Boolean, _
   Optional ByVal filter As Func(Of ParagraphStyle,Boolean,Boolean) _
) As IEnumerable(Of ParagraphStyle)

Parameters

includeHiddenStyles
True to include styles that marked hidden.
filter
On optional filter callback to restrict the returned styles

Return Value

An enumerable for the available paragraph styles.
Remarks

Note: the first styles returned will be the ones that are already in the RootNode's Styles collection. These styles will be passed into the optional filter with a second parameter of true. Following these styles will by any additional unused styles in the AvailableStyles collection (with the second filter parameter set to false). Returning true from the filter will cause the style to be included in the returned enumerable, returning false will exclude the style. If no filter is supplied then all styles will be returned.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also