Version 24.2 (latest)

AvailableStyles Property

A collection of the styles that are available to the document.
Syntax
public RichTextStyleCollection AvailableStyles {get; set;}
Remarks

Note: This collection is created in the RichTextDocument's constructor. It is pre-populated with clones of all the styles in the static DefaultAvailableStyles collection. Both the static DefaultAvailableStyles collection as well as this instance AvailableStyles collection can be modified. However, changes to the static collection will have no effect on the AvailableStyles collection for existing RichTextDocuments.

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