'Declaration Public Shadows Sub Add( _ ByVal style As RichTextStyleBase _ )
public new void Add( RichTextStyleBase style )
Adds the specified style to this collection. The style's RichTextStyleBase.Id must be set to a non-empty string. If the style already exists in the collection then this method does nothing. If a different style with the same Id exists in the collection then an exception is raised.
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